diff options
| author | Russ White <russ@riw.us> | 2019-09-24 10:38:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-24 10:38:10 -0400 |
| commit | e4bf00fdf94e48ca7f14b1d038b849c191c91bea (patch) | |
| tree | de5040917e84eb719820a51419bf9b7bdf9cbd3f /ospf6d/ospf6_snmp.c | |
| parent | bdd0ce8aa5af853c8712931d9ff2de6b11250997 (diff) | |
| parent | 5aeb4f3c60789b09b5194da5ea63d036d6c80f6c (diff) | |
Merge pull request #4995 from opensourcerouting/ospf6d-iftype
ospf6d: fix interface type handling
Diffstat (limited to 'ospf6d/ospf6_snmp.c')
| -rw-r--r-- | ospf6d/ospf6_snmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_snmp.c b/ospf6d/ospf6_snmp.c index fc7c6177d7..1ba89f3bd6 100644 --- a/ospf6d/ospf6_snmp.c +++ b/ospf6d/ospf6_snmp.c @@ -1130,9 +1130,9 @@ static uint8_t *ospfv3IfEntry(struct variable *v, oid *name, size_t *length, return SNMP_INTEGER(ntohl(oi->area->area_id)); break; case OSPFv3IFTYPE: - if (if_is_broadcast(oi->interface)) + if (oi->type == OSPF_IFTYPE_BROADCAST) return SNMP_INTEGER(1); - else if (if_is_pointopoint(oi->interface)) + else if (oi->type == OSPF_IFTYPE_POINTOPOINT) return SNMP_INTEGER(3); else break; /* Unknown, don't put anything */ |
