On Fri, Oct 05, 2012 at 05:05:16PM +0200, Ermal Lu?i wrote: E> > E> speaking of pf(4) side of things please do not loose the VIMAGE calls! E> > E> > Yeah, can you explain please why do we need them here? The pfil hooks E> > are always run already in some defined VNET context, don't they? E> > E> E> from my testing at the time these were needed otherwise you will get issues. E> I do not remember the details but i put those there because were required. E> There is no overhead as well from leaving those there.
Well, we need to understand things we are doing, and not put code blindly. AFAIU, any packet filter is called in already defined VNET context. Let me put Marko and Bjoern to Cc and ask their help. Marko, Bjoern, we are speaking about CURVNET_SET()/CURVNET_RESTORE() in pf_check* functions in pf_ioctl.c. Do we need them? IMO, any pfil(9) hook should be called in defined context. -- Totus tuus, Glebius. _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"