OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 3/5] netns netfilter: return new table from {arp, ip, ip6}t_register_table()
Re: [PATCH 3/5] netns netfilter: return new table from {arp, ip, ip6}t_register_table() [message #26390 is a reply to message #26327] Tue, 22 January 2008 16:57 Go to previous message
Patrick McHardy is currently offline  Patrick McHardy
Messages: 107
Registered: March 2006
Senior Member
Alexey Dobriyan wrote:
> Typical table module registers xt_table structure (i.e. packet_filter)
> and link it to list during it. We can't use one template for it because
> corresponding list_head will become corrupted. We also can't unregister
> with template because it wasn't changed at all and thus doesn't know in
> which list it is.
> 
> So, we duplicate template at the very first step of table registration.
> Table modules will save it for use during unregistration time and actual
> filtering.
> 
> Do it at once to not screw bisection.

Applied, thanks.

> P.S.: renaming i.e. packet_filter => __packet_filter is temporary until
>       full netnsization of table modules is done.

It seems this could have been avoided by ordering the patches
differently (I probably would also have done 4/5 as 1/5).
 
Read Message
Read Message
Previous Topic: [PATCH 2/5] netns netfilter: per-netns xt_tables
Next Topic: [PATCH 4/5] netns netfilter: propagate netns from userspace
Goto Forum:
  


Current Time: Thu Aug 15 20:36:14 GMT 2024

Total time taken to generate the page: 0.02840 seconds