Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2008 09:47:08 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: report and comment
Message-ID:  <20080822094405.W66593@maildrop.int.zabbadoz.net>
In-Reply-To: <alpine.BSF.1.10.0808211935500.65918@odysseus.silby.com>
References:  <48ABD1EF.5060307@elischer.org> <48ABD349.6030701@elischer.org> <alpine.BSF.1.10.0808211935500.65918@odysseus.silby.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 21 Aug 2008, Mike Silbersack wrote:

Hi,

> On Wed, 20 Aug 2008, Julian Elischer wrote:
>
>>> so we have the same global variables, static, in 2 places..
>>> so one set should go in the pf vars and the other in the inet
>>> vars. The first answers I think of are:
>>> 
>>> 
>>> 1/ rename one set

This is exactly what we did with others. See follow-up commit the next
day.


>>> 2/ make one of them a VV_ macro that goes elsewhere.
>> 
>> looking at the code better... I see the entire function is about the same..
>> 
>> 3/ remove the duplicated code in pf and call the one in tcp_subr.c
>> from both places..
>
> The code originally came from tcp_subr.c, then Max copied it over to pf to 
> improve pf's behavior.  I'm guessing that he intentionally left them seperate 
> so that the host part of the TCP stack wasn't interacting with the firewall 
> part of the system.  Renaming the variables in the pf copy is probably a 
> better solution.


I do not understand what this is actually about as pf is NOT
virtualized yet. The only V_ changes in there should be, according to
Marko, be in there to make the code actually compile with the rest of
the V_ changes.

In case we touched a shadowed file local static global variable in there
I would suspect that this might be an error from the original script
run and the change should be reverted.

I'll have a look at this tonight.

/bz

-- 
Bjoern A. Zeeb              Stop bit received. Insert coin for new game.



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