summaryrefslogtreecommitdiff
path: root/ospfd/ospf_snmp.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2022-02-07 23:29:33 +0300
committerGitHub <noreply@github.com>2022-02-07 23:29:33 +0300
commit16cdf5ddbc5c92f0dc43d9243a60a7258c67e68d (patch)
tree566c01776c94e94000d64eb463962763be99e3cf /ospfd/ospf_snmp.c
parent88f739c16bf82cbfe3d8d15c29f88c948c3b53cb (diff)
parentb6d2bb07d86e3e2799643e9ef828943378ab8429 (diff)
Merge pull request #10518 from donaldsharp/af_unspec
Af unspec
Diffstat (limited to 'ospfd/ospf_snmp.c')
-rw-r--r--ospfd/ospf_snmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 7ec3db7894..bf37556863 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -1779,7 +1779,7 @@ static int ospf_snmp_vl_add(struct ospf_vl_data *vl_data)
struct route_node *rn;
memset(&lp, 0, sizeof(struct prefix_ls));
- lp.family = 0;
+ lp.family = AF_UNSPEC;
lp.prefixlen = 64;
lp.id = vl_data->vl_area_id;
lp.adv_router = vl_data->vl_peer;
@@ -1798,7 +1798,7 @@ static int ospf_snmp_vl_delete(struct ospf_vl_data *vl_data)
struct route_node *rn;
memset(&lp, 0, sizeof(struct prefix_ls));
- lp.family = 0;
+ lp.family = AF_UNSPEC;
lp.prefixlen = 64;
lp.id = vl_data->vl_area_id;
lp.adv_router = vl_data->vl_peer;
@@ -1820,7 +1820,7 @@ static struct ospf_vl_data *ospf_snmp_vl_lookup(struct in_addr *area_id,
struct ospf_vl_data *vl_data;
memset(&lp, 0, sizeof(struct prefix_ls));
- lp.family = 0;
+ lp.family = AF_UNSPEC;
lp.prefixlen = 64;
lp.id = *area_id;
lp.adv_router = *neighbor;
@@ -1843,7 +1843,7 @@ static struct ospf_vl_data *ospf_snmp_vl_lookup_next(struct in_addr *area_id,
struct ospf_vl_data *vl_data;
memset(&lp, 0, sizeof(struct prefix_ls));
- lp.family = 0;
+ lp.family = AF_UNSPEC;
lp.prefixlen = 64;
lp.id = *area_id;
lp.adv_router = *neighbor;