svn commit: r354685 - head/sys/net

Gleb Smirnoff glebius at FreeBSD.org
Wed Nov 13 16:28:54 UTC 2019


Author: glebius
Date: Wed Nov 13 16:28:53 2019
New Revision: 354685
URL: https://svnweb.freebsd.org/changeset/base/354685

Log:
  In if_siocaddmulti() enter VNET.
  
  Reported & tested by:	garga

Modified:
  head/sys/net/if.c

Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c	Wed Nov 13 15:56:07 2019	(r354684)
+++ head/sys/net/if.c	Wed Nov 13 16:28:53 2019	(r354685)
@@ -3571,7 +3571,9 @@ if_siocaddmulti(void *arg, int pending)
 	if (pending > 1)
 		if_printf(ifp, "%d SIOCADDMULTI coalesced\n", pending);
 #endif
+	CURVNET_SET(ifp->if_vnet);
 	(void )(*ifp->if_ioctl)(ifp, SIOCADDMULTI, 0);
+	CURVNET_RESTORE();
 }
 
 /*


More information about the svn-src-all mailing list