summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2001-04-26 06:02:03 +0000
committerfenner <fenner@FreeBSD.org>2001-04-26 06:02:03 +0000
commit2947d98f456fae1bdd98b4465a8bb3c7e5a0e83d (patch)
tree47243e410907150a6f87ae2af25c92d3fa343450 /usr.bin/netstat
parent443f4823f60120f75a3be21230292c9540a6525f (diff)
downloadFreeBSD-src-2947d98f456fae1bdd98b4465a8bb3c7e5a0e83d.zip
FreeBSD-src-2947d98f456fae1bdd98b4465a8bb3c7e5a0e83d.tar.gz
Add missing break when printing IPv6 multicast addresses.
Use the sockaddr_dl sdl_type, not ifnet.if_type, to decide what type a multicast sockaddr_dl is.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index b45f4b7..26e3ec0 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -471,9 +471,10 @@ intpr(interval, ifnetaddr, pfunc)
ntop_buf,
sizeof(ntop_buf)),
ifma.ifma_refcount);
+ break;
#endif /* INET6 */
case AF_LINK:
- switch (ifnet.if_type) {
+ switch (msa.dl.sdl_type) {
case IFT_ETHER:
case IFT_FDDI:
fmt = ether_ntoa(
OpenPOWER on IntegriCloud