Skip to content

Commit 14acf8e

Browse files
committed
Add support for IPv4 prefixes with IPv6 nexthops
1 parent b6cee67 commit 14acf8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

print-bgp.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,6 +2172,11 @@ bgp_attr_print(netdissect_options *ndo,
21722172
tptr += tnhlen;
21732173
tlen -= tnhlen;
21742174
tnhlen = 0;
2175+
} else if (tnhlen >= sizeof(nd_ipv6)) {
2176+
ND_PRINT("%s",GET_IP6ADDR_STRING(tptr));
2177+
tptr += sizeof(nd_ipv6);
2178+
tnhlen -= sizeof(nd_ipv6);
2179+
tlen -= sizeof(nd_ipv6);
21752180
} else {
21762181
ND_PRINT("%s",GET_IPADDR_STRING(tptr));
21772182
tptr += sizeof(nd_ipv4);

0 commit comments

Comments
 (0)