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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76013
@ -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
Block a user