From b52158b80d26a6cab7e43346abee96ede1121e31 Mon Sep 17 00:00:00 2001 From: wollman Date: Thu, 7 Jan 2016 20:43:45 +0000 Subject: 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. --- sys/netinet6/in6.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netinet6/in6.c') 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 */ -- cgit v1.1