Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 2008 09:14:56 GMT
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 144541 for review
Message-ID:  <200807030914.m639EuHi013839@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=144541

Change 144541 by julian@julian_trafmon1 on 2008/07/03 09:14:25

	ifnet_byindex() is no longer a macro so it can not be onthe LHS.
	use ifnet_setbyindex() instead.

Affected files ...

.. //depot/projects/vimage/src/sys/kern/kern_vimage.c#64 edit

Differences ...

==== //depot/projects/vimage/src/sys/kern/kern_vimage.c#64 (text+ko) ====

@@ -293,7 +293,7 @@
 	do {
 		INIT_VNET_NET(curvnet);
 
-		ifnet_byindex(ifp->if_index) = NULL;
+		ifnet_setbyindex(ifp->if_index, NULL);
 		/* XXX: should be locked with if_findindex() */
 		while (V_if_index > 0 && ifnet_byindex(V_if_index) == NULL)
 			V_if_index--;
@@ -319,7 +319,7 @@
 		V_if_index = ifp->if_index;
 	if (V_if_index >= V_if_indexlim)
 		if_grow();
-	ifnet_byindex(ifp->if_index) = ifp;
+	ifnet_setbyindex(ifp->if_index, ifp);
 
 	/* Rename the ifnet */
 	if (new_vnet == ifp->if_home_vnet) {


help

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