summaryrefslogtreecommitdiff
path: root/lib/crc-itu-t.c
diff options
context:
space:
mode:
authorJeff Barnhill <0xeffeff@gmail.com>2018-04-06 00:29:47 +0300
committerDavid S. Miller <davem@davemloft.net>2018-04-06 05:23:43 +0300
commit71a1c915238c970cd9bdd5bf158b1279d6b6d55b (patch)
treed04926ef528f98f576d3d5aed87ebcb410ee122f /lib/crc-itu-t.c
parenta2aeea1cc14f9143f973b99950f39b38be144f3e (diff)
downloadlinux-71a1c915238c970cd9bdd5bf158b1279d6b6d55b.tar.xz
net/ipv6: Increment OUTxxx counters after netfilter hook
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@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/crc-itu-t.c')
0 files changed, 0 insertions, 0 deletions