[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180405.222453.1210479847233171024.davem@davemloft.net>
Date: Thu, 05 Apr 2018 22:24:53 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: 0xeffeff@...il.com
Cc: netdev@...r.kernel.org, dsahern@...il.com
Subject: Re: [PATCH net] net/ipv6: Increment OUTxxx counters after
netfilter hook
From: Jeff Barnhill <0xeffeff@...il.com>
Date: Thu, 5 Apr 2018 21:29:47 +0000
> At the end of ip6_forward(), IPSTATS_MIB_OUTFORWDATAGRAMS and
> IPSTATS_MIB_OUTOCTETS are incremented immediately before the NF_HOOK call
> for NFPROTO_IPV6 / NF_INET_FORWARD. As a result, these counters get
> incremented regardless of whether or not the netfilter hook allows the
> packet to continue being processed. This change increments the counters
> in ip6_forward_finish() so that it will not happen if the netfilter hook
> chooses to terminate the packet, which is similar to how IPv4 works.
>
> Signed-off-by: Jeff Barnhill <0xeffeff@...il.com>
Yep, this is more consistent with ipv4.
Applied, thank you.
Powered by blists - more mailing lists