diff options
author | thompsa <thompsa@FreeBSD.org> | 2005-11-03 00:56:43 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2005-11-03 00:56:43 +0000 |
commit | 2e1794dfe58395b59c1e46df5ac29136866d2dec (patch) | |
tree | 0fcd4e2ee60fbf6b09c8d03e501e7b4b4eacb506 | |
parent | 7cc0bf63f629b7fa389ba3a9b967aeb7f2acdcda (diff) | |
download | FreeBSD-src-2e1794dfe58395b59c1e46df5ac29136866d2dec.zip FreeBSD-src-2e1794dfe58395b59c1e46df5ac29136866d2dec.tar.gz |
List IFT_BRIDGE as a valid type so that arp entries can be properly deleted.
Submitted by: Michal Mertl <mime^traveller.cz>
-rw-r--r-- | usr.sbin/arp/arp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index a9f0878..a94d3ea 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -284,6 +284,7 @@ valid_type(int type) case IFT_ISO88024: case IFT_ISO88025: case IFT_L2VLAN: + case IFT_BRIDGE: return (1); default: return (0); @@ -541,7 +542,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 || - sdl->sdl_type == IFT_L2VLAN) && + sdl->sdl_type == IFT_L2VLAN || + sdl->sdl_type == IFT_BRIDGE) && sdl->sdl_alen == ETHER_ADDR_LEN) printf("%s", ether_ntoa((struct ether_addr *)LLADDR(sdl))); else { @@ -592,6 +594,9 @@ print_entry(struct sockaddr_dl *sdl, case IFT_IEEE1394: printf(" [firewire]"); break; + case IFT_BRIDGE: + printf(" [bridge]"); + break; default: break; } |