Revision f4a60a9b proto/rip/config.Y

View differences:

proto/rip/config.Y
52 52
rip_proto_start: proto_start rip_variant
53 53
{
54 54
  this_proto = proto_config_new(&proto_rip, $1);
55
  init_list(&RIP_CFG->patt_list);
55
  this_proto->net_type = $2 ? NET_IP4 : NET_IP6;
56 56

  
57
  init_list(&RIP_CFG->patt_list);
57 58
  RIP_CFG->rip2 = $2;
58 59
  RIP_CFG->infinity = RIP_DEFAULT_INFINITY;
59

  
60 60
  RIP_CFG->min_timeout_time = 60;
61 61
  RIP_CFG->max_garbage_time = 60;
62 62
};
63 63

  
64 64
rip_proto_item:
65 65
   proto_item
66
 | proto_channel
66 67
 | ECMP bool		{ RIP_CFG->ecmp = $2 ? RIP_DEFAULT_ECMP_LIMIT : 0; }
67 68
 | ECMP bool LIMIT expr	{ RIP_CFG->ecmp = $2 ? $4 : 0; if ($4 < 0) cf_error("ECMP limit cannot be negative"); }
68 69
 | INFINITY expr	{ RIP_CFG->infinity = $2; }

Also available in: Unified diff