From 88d5b613583150191ac9e32669bbf99145bbae41 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Wed, 4 Apr 2001 15:14:06 +0000 Subject: [PATCH] Add the VLAN interface type to the list of ARP-capable interface types. --- usr.sbin/arp/arp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index 4338c5f0a9a5..b20235e145d3 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -312,7 +312,7 @@ set(int argc, char **argv) (rtm->rtm_flags & RTF_LLINFO) && !(rtm->rtm_flags & RTF_GATEWAY)) switch (sdl->sdl_type) { case IFT_ETHER: case IFT_FDDI: case IFT_ISO88023: - case IFT_ISO88024: case IFT_ISO88025: + case IFT_ISO88024: case IFT_ISO88025: case IFT_L2VLAN: goto overwrite; } if (doing_proxy == 0) { @@ -399,7 +399,7 @@ delete(char *host, char *info) (rtm->rtm_flags & RTF_LLINFO) && !(rtm->rtm_flags & RTF_GATEWAY)) switch (sdl->sdl_type) { case IFT_ETHER: case IFT_FDDI: case IFT_ISO88023: - case IFT_ISO88024: case IFT_ISO88025: + case IFT_ISO88024: case IFT_ISO88025: case IFT_L2VLAN: goto delete; } } @@ -509,6 +509,9 @@ print_entry(struct sockaddr_dl *sdl, case IFT_ISO88025: printf(" [token-ring]"); break; + case IFT_L2VLAN: + printf(" [vlan]"); + break; default: } if (sdl->sdl_rcf != NULL) {