Jeff Barnhill
71a1c91523
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>
2018-04-05 22:23:43 -04:00
..
2018-03-27 13:18:09 -04:00
2018-04-04 12:04:59 -04:00
2017-10-20 13:15:07 +01:00
2018-03-27 13:18:09 -04:00
2018-03-27 13:18:09 -04:00
2018-03-31 23:33:04 -04:00
2017-11-15 11:56:19 -08:00
2018-03-26 12:07:48 -04:00
2017-07-04 22:35:16 +01:00
2018-04-04 11:31:57 -04:00
2018-02-27 10:46:01 +01:00
2018-01-17 00:10:42 -05:00
2018-02-28 11:43:28 -05:00
2015-09-02 15:31:00 -07:00
2018-01-10 16:03:55 -05:00
2017-09-01 20:33:42 -07:00
2018-03-27 13:18:09 -04:00
2017-05-21 13:42:36 -04:00
2018-03-27 13:18:09 -04:00
2017-01-28 10:33:06 -05:00
2017-12-03 10:18:28 -05:00
2018-02-16 15:57:42 -05:00
2018-03-29 14:10:31 -04:00
2018-03-27 13:18:09 -04:00
2018-04-05 15:16:15 -04:00
2017-11-02 11:10:55 +01:00
2017-04-20 10:35:33 -04:00
2017-10-08 10:12:15 -07:00
2016-04-07 16:53:29 -04:00
2018-04-05 22:23:43 -04:00
2018-04-05 15:16:15 -04:00
2016-11-02 15:18:36 -04:00
2018-04-05 15:16:15 -04:00
2018-03-27 13:18:09 -04:00
2016-11-04 14:45:23 -04:00
2018-02-28 11:43:28 -05:00
2018-03-01 13:13:23 -05:00
2017-11-02 11:10:55 +01:00
2015-08-13 17:08:39 -07:00
2018-03-27 13:18:09 -04:00
2016-12-25 17:21:23 +01:00
2018-03-27 13:18:09 -04:00
2018-02-25 20:51:13 +01:00
2017-11-24 01:37:35 +09:00
2018-04-04 11:31:57 -04:00
2018-03-31 23:25:39 -04:00
2017-03-24 13:17:07 -07:00
2018-03-27 13:18:09 -04:00
2018-04-04 12:04:59 -04:00
2018-04-04 11:31:57 -04:00
2017-09-01 18:35:23 -07:00
2018-03-30 14:14:33 -04:00
2018-03-04 13:04:22 -05:00
2018-03-27 13:18:09 -04:00
2018-04-05 15:16:15 -04:00
2018-03-25 20:53:54 -04:00
2018-03-27 13:18:09 -04:00
2018-03-31 23:33:04 -04:00
2018-01-22 16:01:30 -05:00
2015-11-03 10:52:13 -05:00
2017-11-02 11:10:55 +01:00
2018-01-22 16:01:30 -05:00
2018-04-04 11:31:57 -04:00
2018-03-27 13:18:09 -04:00
2017-12-19 08:23:21 +01:00
2017-06-16 11:48:39 -04:00
2017-06-02 13:57:27 -04:00
2017-06-02 13:57:27 -04:00
2018-03-07 10:54:29 +01:00
2018-03-04 17:49:17 -05:00
2018-03-27 13:18:09 -04:00
2017-02-09 10:22:17 +01:00
2018-02-28 11:43:28 -05:00
2018-03-27 13:18:09 -04:00