[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d7af6c31-1217-ec43-b415-7271ab8f318f@gmail.com>
Date: Fri, 30 Mar 2018 09:06:52 -0600
From: David Ahern <dsahern@...il.com>
To: Jeff Barnhill <0xeffeff@...il.com>, netdev@...r.kernel.org
Subject: Re: ip6_forward / NF_HOOK and counters
On 3/26/18 7:35 PM, Jeff Barnhill wrote:
> At the end of ip6_forward(), is there a good reason why
> IPSTATS_MIB_OUTFORWDATAGRAMS and IPSTATS_MIB_OUTOCTETS are incremented
> before the NF_HOOK? If the hook steals or drops the packet, this
> counts still go up, which seems incorrect.
>
> v4/ip_forward() increments these counters in ip_forward_finish(). It
> seems that v6 should do it in ip6_forward_finish() ?? Thoughts?
>
> Jeff
>
I agree and think it is part of the alignment between IPv4 and IPv6.
Powered by blists - more mailing lists