Re: [PATCH] net/icmp: restore source address if packet is NATed
From: David Miller
Date: Sun Jun 25 2017 - 21:48:44 EST
From: "Jason A. Donenfeld" <Jason@xxxxxxxxx>
Date: Mon, 26 Jun 2017 00:52:09 +0200
> On Sun, Jun 25, 2017 at 5:49 PM, David Miller <davem@xxxxxxxxxxxxx> wrote:
>> You definitely can't just rewrite header fields here either. The
>> SKB could be shared, for example.
>
> I was afraid of that. It's easy to rework this particular patch,
> though, if you're still interested in the crufty bolt on approach...
> But I think I should investigate the netfilter-only approach instead,
> as you suggested.
I highly encourage you to continue pursuing the netfilter based
approach, and to also discuss it on netfilter-devel which will
hit more capable minds than just here on netdev.