svn commit: r293358 - stable/10/sys/netinet6
Garrett Wollman
wollman at FreeBSD.org
Thu Jan 7 20:43:46 UTC 2016
Author: wollman
Date: Thu Jan 7 20:43:45 2016
New Revision: 293358
URL: https://svnweb.freebsd.org/changeset/base/293358
Log:
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.
Modified:
stable/10/sys/netinet6/in6.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/netinet6/in6.c
==============================================================================
--- stable/10/sys/netinet6/in6.c Thu Jan 7 20:37:18 2016 (r293357)
+++ stable/10/sys/netinet6/in6.c Thu Jan 7 20:43:45 2016 (r293358)
@@ -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 */
More information about the svn-src-stable
mailing list