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:
Gleb Smirnoff 2004-07-28 18:18:47 +00:00
parent 98f85a58cd
commit 77ef8a97cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132803

View File

@ -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));