Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2012 19:17:59 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Ermal Lu?i <eri@FreeBSD.org>
Cc:        net@FreeBSD.org, zec@FreeBSD.org, bjoern@FreeBSD.org
Subject:   Re: [PATCH] resolve byte order mess in ip_input/ip_output/pfil(9)
Message-ID:  <20121005151759.GT34622@glebius.int.ru>
In-Reply-To: <CAPBZQG2PSNK_YmwpKDue_ZorNRXW0Zag2LW=p%2BOAk08nopy7LQ@mail.gmail.com>
References:  <20121005114716.GP34622@FreeBSD.org> <CAPBZQG0Z0Hc-DCQoyZGEwLMXB4wSsEZhyoy9zNDuXe8P8LBoQA@mail.gmail.com> <20121005131228.GQ34622@glebius.int.ru> <CAPBZQG2PSNK_YmwpKDue_ZorNRXW0Zag2LW=p%2BOAk08nopy7LQ@mail.gmail.com>

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



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