From 77ef8a97cd7b5ca8f33936661d8ad982820ca445 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Wed, 28 Jul 2004 18:18:47 +0000 Subject: [PATCH] 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 Reviewed by: ru Approved by: julian (mentor) MFC after: 1 week --- usr.bin/netstat/route.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 37ca85d051a5..585fd7eecae3 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -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));