svn commit: r346972 - stable/11/sys/netinet6
Konstantin Belousov
kib at FreeBSD.org
Tue Apr 30 18:42:43 UTC 2019
Author: kib
Date: Tue Apr 30 18:42:42 2019
New Revision: 346972
URL: https://svnweb.freebsd.org/changeset/base/346972
Log:
MFC r346596:
ipoib: assign link-local address according to RFC.
Modified:
stable/11/sys/netinet6/in6_ifattach.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet6/in6_ifattach.c
==============================================================================
--- stable/11/sys/netinet6/in6_ifattach.c Tue Apr 30 18:36:56 2019 (r346971)
+++ stable/11/sys/netinet6/in6_ifattach.c Tue Apr 30 18:42:42 2019 (r346972)
@@ -348,6 +348,14 @@ found:
IF_ADDR_RUNLOCK(ifp);
return -1;
+ case IFT_INFINIBAND:
+ if (addrlen != 20) {
+ IF_ADDR_RUNLOCK(ifp);
+ return -1;
+ }
+ bcopy(addr + 12, &in6->s6_addr[8], 8);
+ break;
+
default:
IF_ADDR_RUNLOCK(ifp);
return -1;
More information about the svn-src-all
mailing list