Revision 48e5f32d proto/ospf/config.Y

View differences:

proto/ospf/config.Y
131 131
CF_KEYWORDS(ELIGIBLE, POLL, NETWORKS, HIDDEN, VIRTUAL, CHECK, LINK, ONLY, BFD)
132 132
CF_KEYWORDS(RX, BUFFER, LARGE, NORMAL, STUBNET, HIDDEN, SUMMARY, TAG, EXTERNAL)
133 133
CF_KEYWORDS(WAIT, DELAY, LSADB, ECMP, LIMIT, WEIGHT, NSSA, TRANSLATOR, STABILITY)
134
CF_KEYWORDS(GLOBAL, LSID, ROUTER, SELF, INSTANCE, REAL, NETMASK, TX, PRIORITY)
134
CF_KEYWORDS(GLOBAL, LSID, ROUTER, SELF, INSTANCE, REAL, NETMASK, TX, PRIORITY, LENGTH)
135
CF_KEYWORDS(SECONDARY)
135 136

  
136 137
%type <t> opttext
137 138
%type <ld> lsadb_args
......
302 303
 | AUTHENTICATION NONE { OSPF_PATT->autype = OSPF_AUTH_NONE ; }
303 304
 | AUTHENTICATION SIMPLE { OSPF_PATT->autype = OSPF_AUTH_SIMPLE ; }
304 305
 | AUTHENTICATION CRYPTOGRAPHIC { OSPF_PATT->autype = OSPF_AUTH_CRYPT ; }
305
 | RX BUFFER LARGE { OSPF_PATT->rxbuf = OSPF_RXBUF_LARGE ; } 
306
 | RX BUFFER NORMAL { OSPF_PATT->rxbuf = OSPF_RXBUF_NORMAL ; } 
307
 | RX BUFFER expr { OSPF_PATT->rxbuf = $3 ; if (($3 < OSPF_RXBUF_MINSIZE) || ($3 > OSPF_MAX_PKT_SIZE)) cf_error("Buffer size must be in range 256-65535"); } 
306
 | RX BUFFER NORMAL { OSPF_PATT->rx_buffer = 0; } 
307
 | RX BUFFER LARGE { OSPF_PATT->rx_buffer = OSPF_MAX_PKT_SIZE; } 
308
 | RX BUFFER expr { OSPF_PATT->rx_buffer = $3; if (($3 < OSPF_MIN_PKT_SIZE) || ($3 > OSPF_MAX_PKT_SIZE)) cf_error("Buffer size must be in range 256-65535"); }
308 309
 | TX tos { OSPF_PATT->tx_tos = $2; }
309 310
 | TX PRIORITY expr { OSPF_PATT->tx_priority = $3; }
311
 | TX LENGTH expr { OSPF_PATT->tx_length = $3; if (($3 < OSPF_MIN_PKT_SIZE) || ($3 > OSPF_MAX_PKT_SIZE)) cf_error("TX length must be in range 256-65535"); }
310 312
 | TTL SECURITY bool { OSPF_PATT->ttl_security = $3; }
311 313
 | TTL SECURITY TX ONLY { OSPF_PATT->ttl_security = 2; }
312 314
 | BFD bool { OSPF_PATT->bfd = $2; cf_check_bfd($2); }
315
 | SECONDARY bool { OSPF_PATT->bsd_secondary = $2; }
313 316
 | password_list
314 317
 ;
315 318

  

Also available in: Unified diff