Revision 8df02847 proto/ospf/config.Y

View differences:

proto/ospf/config.Y
131 131
CF_KEYWORDS(ELIGIBLE, POLL, NETWORKS, HIDDEN, VIRTUAL, CHECK, LINK)
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)
134
CF_KEYWORDS(GLOBAL, LSID, ROUTER, SELF, INSTANCE, REAL, NETMASK)
135 135

  
136 136
%type <t> opttext
137 137
%type <ld> lsadb_args
......
290 290
 | TYPE POINTOMULTIPOINT { OSPF_PATT->type = OSPF_IT_PTMP ; }
291 291
 | TYPE PTMP { OSPF_PATT->type = OSPF_IT_PTMP ; }
292 292
 | REAL BROADCAST bool { OSPF_PATT->real_bcast = $3; if (OSPF_VERSION != 2) cf_error("Real broadcast option requires OSPFv2"); }
293
 | PTP NETMASK bool { OSPF_PATT->ptp_netmask = $3; if (OSPF_VERSION != 2) cf_error("Real netmask option requires OSPFv2"); }
293 294
 | TRANSMIT DELAY expr { OSPF_PATT->inftransdelay = $3 ; if (($3<=0) || ($3>65535)) cf_error("Transmit delay must be in range 1-65535"); }
294 295
 | PRIORITY expr { OSPF_PATT->priority = $2 ; if (($2<0) || ($2>255)) cf_error("Priority must be in range 0-255"); }
295 296
 | STRICT NONBROADCAST bool { OSPF_PATT->strictnbma = $3 ; }
......
364 365
  OSPF_PATT->type = OSPF_IT_UNDEF;
365 366
  init_list(&OSPF_PATT->nbma_list);
366 367
  OSPF_PATT->autype = OSPF_AUTH_NONE;
368
  OSPF_PATT->ptp_netmask = 2; /* not specified */
367 369
  reset_passwords();
368 370
 }
369 371
;

Also available in: Unified diff