Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2019 18:36:56 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r346971 - stable/12/sys/netinet6
Message-ID:  <201904301836.x3UIauaO011419@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904301836.x3UIauaO011419>