summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2016-01-07 20:43:45 +0000
committerwollman <wollman@FreeBSD.org>2016-01-07 20:43:45 +0000
commitb52158b80d26a6cab7e43346abee96ede1121e31 (patch)
treee6c2c009283987bdda71279a94424ae1b539f374 /sys/netinet6/in6.c
parentab9ee23babb52c55edb1827979d1a02d91577aec (diff)
downloadFreeBSD-src-b52158b80d26a6cab7e43346abee96ede1121e31.zip
FreeBSD-src-b52158b80d26a6cab7e43346abee96ede1121e31.tar.gz
MFH r292836:
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.
Diffstat (limited to 'sys/netinet6/in6.c')
-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 28a830f..f07f670 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -2449,6 +2449,7 @@ in6_if2idlen(struct ifnet *ifp)
#ifdef IFT_MIP
case IFT_MIP: /* ditto */
#endif
+ case IFT_BRIDGE: /* bridge(4) only does Ethernet-like links */
case IFT_INFINIBAND:
return (64);
case IFT_FDDI: /* RFC2467 */
OpenPOWER on IntegriCloud