summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2015-12-28 18:29:47 +0000
committerwollman <wollman@FreeBSD.org>2015-12-28 18:29:47 +0000
commitfc57e5b82d72057b5ac303a1428c254ce29034f1 (patch)
tree06bf1b8552817b347eed7f1e1e410b1c368af88d /sys/netinet6
parent967ec3ab7f72d478eac7b4cfd98149d142ff5a09 (diff)
downloadFreeBSD-src-fc57e5b82d72057b5ac303a1428c254ce29034f1.zip
FreeBSD-src-fc57e5b82d72057b5ac303a1428c254ce29034f1.tar.gz
in6_if2idlen: treat bridge(4) interfaces like other Ethernet interfaces
bridge(4) interfaces have an if_type of IFT_BRIDGE, rather than IFT_ETHER, even though they only support Ethernet-style links. This caused in6_if2idlen to emit an "unknown link type (209)" warning to the console every time it was called. Add IFT_BRIDGE to the case statement in the appropriate place, indicating that it uses the same IPv6 address format as other Ethernet-like interfaces. MFC after: 1 week
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index aedaf7f..0f8fb67 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -2008,6 +2008,7 @@ in6_if2idlen(struct ifnet *ifp)
case IFT_PROPVIRTUAL: /* XXX: no RFC. treat it as ether */
case IFT_L2VLAN: /* ditto */
case IFT_IEEE80211: /* ditto */
+ case IFT_BRIDGE: /* bridge(4) only does Ethernet-like links */
case IFT_INFINIBAND:
return (64);
case IFT_FDDI: /* RFC2467 */
OpenPOWER on IntegriCloud