summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/netstat/if.c')
-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