Revision 8d94a524

View differences:

proto/ospf/config.Y
75 75

  
76 76
ospf_area_item:
77 77
   STUB COST expr { this_area->stub = $3 ; if($3<=0) cf_error("Stub cost must be greater than zero"); }
78
 | STUB bool {if($2) { if(!this_area->stub) this_area->stub=DEFAULT_STUB_COST;}else{ this_area->stub=0;}}
78 79
 | NETWORKS '{' pref_list '}'
79 80
 | INTERFACE ospf_iface_list
80 81
 | ospf_vlink
proto/ospf/ospf.h
53 53

  
54 54
#define DEFAULT_OSPFTICK 1
55 55
#define DEFAULT_RFC1583 0	/* compatibility with rfc1583 */
56
#define DEFAULT_STUB_COST 1000
56 57

  
57 58

  
58 59
struct ospf_config

Also available in: Unified diff