Date: Wed, 13 Nov 2019 16:28:53 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r354685 - head/sys/net Message-ID: <201911131628.xADGSrdf076836@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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(); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911131628.xADGSrdf076836>