Revision 4324025f proto/babel/config.Y

View differences:

proto/babel/config.Y
21 21
CF_DECLS
22 22

  
23 23
CF_KEYWORDS(BABEL, METRIC, RXCOST, HELLO, UPDATE, INTERVAL, PORT, WIRED,
24
WIRELESS, RX, TX, BUFFER, LENGTH, CHECK, LINK, BABEL_METRIC)
24
	WIRELESS, RX, TX, BUFFER, LENGTH, CHECK, LINK, BABEL_METRIC, NEXT, HOP,
25
	IPV4, IPV6)
25 26

  
26 27
CF_GRAMMAR
27 28

  
......
30 31
babel_proto_start: proto_start BABEL
31 32
{
32 33
  this_proto = proto_config_new(&proto_babel, $1);
33
  this_proto->net_type = NET_IP6;
34 34
  init_list(&BABEL_CFG->iface_list);
35 35
};
36 36

  
......
98 98
 | TX tos { BABEL_IFACE->tx_tos = $2; }
99 99
 | TX PRIORITY expr { BABEL_IFACE->tx_priority = $3; }
100 100
 | CHECK LINK bool { BABEL_IFACE->check_link = $3; }
101
 | NEXT HOP IPV4 ipa { BABEL_IFACE->next_hop_ip4 = $4; if (!ipa_is_ip4($4)) cf_error("Must be an IPv4 address"); }
102
 | NEXT HOP IPV6 ipa { BABEL_IFACE->next_hop_ip6 = $4; if (!ipa_is_ip6($4)) cf_error("Must be an IPv6 address"); }
101 103
 ;
102 104

  
103 105
babel_iface_opts:

Also available in: Unified diff