svn commit: r292836 - head/sys/netinet6
Garrett Wollman
wollman at FreeBSD.org
Mon Dec 28 18:29:48 UTC 2015
Author: wollman
Date: Mon Dec 28 18:29:47 2015
New Revision: 292836
URL: https://svnweb.freebsd.org/changeset/base/292836
Log:
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
Modified:
head/sys/netinet6/in6.c
Modified: head/sys/netinet6/in6.c
==============================================================================
--- head/sys/netinet6/in6.c Mon Dec 28 18:28:18 2015 (r292835)
+++ head/sys/netinet6/in6.c Mon Dec 28 18:29:47 2015 (r292836)
@@ -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 */
More information about the svn-src-head
mailing list