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.
This commit is contained in:
parent
40adb1a63b
commit
b9d92bf53e
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue