Print link level address on vlan interfaces using ether_ntoa(), to make
output on bare ethernet and vlan interfaces the same. PR: bin/69674 Submitted by: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl> Reviewed by: ru Approved by: julian (mentor) MFC after: 1 week
This commit is contained in:
parent
b80c9f2f4b
commit
658e7039ff
@ -646,6 +646,7 @@ fmt_sockaddr(struct sockaddr *sa, struct sockaddr *mask, int flags)
|
||||
switch (sdl->sdl_type) {
|
||||
|
||||
case IFT_ETHER:
|
||||
case IFT_L2VLAN:
|
||||
if (sdl->sdl_alen == ETHER_ADDR_LEN) {
|
||||
cp = ether_ntoa((struct ether_addr *)
|
||||
(sdl->sdl_data + sdl->sdl_nlen));
|
||||
|
Loading…
x
Reference in New Issue
Block a user