summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-12-27 14:30:54 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-12-27 14:30:54 +0000
commit23f8afc8ec23c52b24121969de5bb0f590f89fe8 (patch)
tree6502b21d1647a67564b2949b08e7083c89f1d2f1
parentd0499bc177c2f2b6b520e84eb3901fc2f968e580 (diff)
Notes
-rw-r--r--usr.sbin/arp/arp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index 50a8be2ceaf49..9c794aeae493b 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -523,7 +523,8 @@ print_entry(struct sockaddr_dl *sdl,
}
printf("%s (%s) at ", host, inet_ntoa(addr->sin_addr));
if (sdl->sdl_alen) {
- if (sdl->sdl_type == IFT_ETHER &&
+ if ((sdl->sdl_type == IFT_ETHER ||
+ sdl->sdl_type == IFT_L2VLAN) &&
sdl->sdl_alen == ETHER_ADDR_LEN)
printf("%s", ether_ntoa((struct ether_addr *)LLADDR(sdl)));
else {