mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
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
98f85a58cd
commit
77ef8a97cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132803
@ -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…
Reference in New Issue
Block a user