Revision 92cc1e74 proto/rip/config.Y
proto/rip/config.Y | ||
---|---|---|
57 | 57 |
init_list(&RIP_CFG->patt_list); |
58 | 58 |
RIP_CFG->rip2 = $2; |
59 | 59 |
RIP_CFG->infinity = RIP_DEFAULT_INFINITY; |
60 |
RIP_CFG->min_timeout_time = 60; |
|
61 |
RIP_CFG->max_garbage_time = 60; |
|
60 |
RIP_CFG->min_timeout_time = 60 S_;
|
|
61 |
RIP_CFG->max_garbage_time = 60 S_;
|
|
62 | 62 |
}; |
63 | 63 |
|
64 | 64 |
rip_proto_item: |
... | ... | |
147 | 147 |
| SPLIT HORIZON bool { RIP_IFACE->split_horizon = $3; } |
148 | 148 |
| POISON REVERSE bool { RIP_IFACE->poison_reverse = $3; } |
149 | 149 |
| CHECK ZERO bool { RIP_IFACE->check_zero = $3; } |
150 |
| UPDATE TIME expr { RIP_IFACE->update_time = $3; if ($3<=0) cf_error("Update time must be positive"); }
|
|
151 |
| TIMEOUT TIME expr { RIP_IFACE->timeout_time = $3; if ($3<=0) cf_error("Timeout time must be positive"); }
|
|
152 |
| GARBAGE TIME expr { RIP_IFACE->garbage_time = $3; if ($3<=0) cf_error("Garbage time must be positive"); }
|
|
150 |
| UPDATE TIME expr { RIP_IFACE->update_time = (btime) $3 S_; if ($3<=0) cf_error("Update time must be positive"); }
|
|
151 |
| TIMEOUT TIME expr { RIP_IFACE->timeout_time = (btime) $3 S_; if ($3<=0) cf_error("Timeout time must be positive"); }
|
|
152 |
| GARBAGE TIME expr { RIP_IFACE->garbage_time = (btime) $3 S_; if ($3<=0) cf_error("Garbage time must be positive"); }
|
|
153 | 153 |
| ECMP WEIGHT expr { RIP_IFACE->ecmp_weight = $3 - 1; if (($3<1) || ($3>256)) cf_error("ECMP weight must be in range 1-256"); } |
154 | 154 |
| RX BUFFER expr { RIP_IFACE->rx_buffer = $3; if (($3<256) || ($3>65535)) cf_error("RX length must be in range 256-65535"); } |
155 | 155 |
| TX LENGTH expr { RIP_IFACE->tx_length = $3; if (($3<256) || ($3>65535)) cf_error("TX length must be in range 256-65535"); } |
Also available in: Unified diff