Re: [PATCH v2 nf] netfilter: nat: don't register device notifier twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 06, 2019 at 12:44:17PM +0100, Florian Westphal wrote:
> Otherwise, we get notifier list corruption.
> 
> This is the most simple fix: remove the device notifier call chain
> from the ipv6 masquerade register function and handle it only
> in the ipv4 version.
> 
> The better fix is merge
> nf_nat_masquerade_ipv4/6_(un)register_notifier
>   into a single
> nf_nat_masquerade_(un)register_notifiers
> 
> but to do this its needed to first merge the two masquerade modules
> into a single xt_MASQUERADE.
> 
> Furthermore, we need to use different refcounts for ipv4/ipv6
> until we can merge MASQUERADE.

Applied, thanks Florian.



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux