From b9d92bf53e41958e7e6466a782a4fe7a88d59f43 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Thu, 26 Apr 2001 06:02:03 +0000 Subject: [PATCH] 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. --- usr.bin/netstat/if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index b45f4b7b0c8..26e3ec00ac5 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(