diff options
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/config.Y | 2 | ||||
-rw-r--r-- | proto/ospf/ospf.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y index ec7da8e..4ada41e 100644 --- a/proto/ospf/config.Y +++ b/proto/ospf/config.Y @@ -128,7 +128,7 @@ CF_GRAMMAR CF_ADDTO(proto, ospf_proto '}' { ospf_proto_finish(); } ) ospf_proto_start: proto_start OSPF { - this_proto = proto_config_new(&proto_ospf, sizeof(struct ospf_config)); + this_proto = proto_config_new(&proto_ospf, sizeof(struct ospf_config), $1); this_proto->preference = DEF_PREF_OSPF; init_list(&OSPF_CFG->area_list); init_list(&OSPF_CFG->vlink_list); diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index 2e99b0f..60a34fb 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -85,8 +85,8 @@ struct ospf_config byte rfc1583; byte abr; int ecmp; - list area_list; - list vlink_list; + list area_list; /* list of struct ospf_area_config */ + list vlink_list; /* list of struct ospf_iface_patt */ }; struct nbma_node |