[PATCH] MASQUERADE handling of device events
kaber at trash.net
Mon Nov 8 17:24:52 CET 2004
Phil Oester wrote:
>On Mon, Nov 08, 2004 at 05:05:38PM +0100, Patrick McHardy wrote:
>>But without the ifindex comparison, a situation like this can happen:
>>ppp0 goes down
>>ppp1 goes down
>>ppp0 comes up again, same IP as before
>>ppp1 connections get killed
>>ppp1 comes up again
>>So we should keep this.
>But ifindex is meaningless on ppp interfaces - it is incremented on each
>cycle. So there is no way to say that the original ppp1 is the same
>interface as the new ppp1.
>ifindex just cannot be used reliably.
Of course, I wasn't thinking :) Then what about Henrik's suggestion,
replacing masq_index by a new status bit ?
More information about the netfilter-devel