svn commit: r346971 - stable/12/sys/netinet6
Konstantin Belousov
kib at FreeBSD.org
Tue Apr 30 18:36:57 UTC 2019
Author: kib
Date: Tue Apr 30 18:36:56 2019
New Revision: 346971
URL: https://svnweb.freebsd.org/changeset/base/346971
Log:
MFC r346596:
ipoib: assign link-local address according to RFC.
Modified:
stable/12/sys/netinet6/in6_ifattach.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/netinet6/in6_ifattach.c
==============================================================================
--- stable/12/sys/netinet6/in6_ifattach.c Tue Apr 30 18:03:17 2019 (r346970)
+++ stable/12/sys/netinet6/in6_ifattach.c Tue Apr 30 18:36:56 2019 (r346971)
@@ -327,6 +327,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-stable-12
mailing list