Revision 758458be proto/static/config.Y

View differences:

proto/static/config.Y
34 34
 | static_proto stat_route ';'
35 35
 ;
36 36

  
37
stat_route0: ROUTE IPA pxlen {
37
stat_route0: ROUTE prefix {
38 38
     this_srt = cfg_allocz(sizeof(struct static_route));
39 39
     add_tail(&((struct static_config *) this_proto)->other_routes, &this_srt->n);
40
     if (!ip_is_prefix($2, $3)) cf_error("Invalid network prefix: %I/%d", $2, $3);
41
     this_srt->net = $2;
42
     this_srt->masklen = $3;
40
     this_srt->net = $2.addr;
41
     this_srt->masklen = $2.len;
43 42
  }
44 43
 ;
45 44

  

Also available in: Unified diff