diff options
Diffstat (limited to 'net/ipv6/ip6_input.c')
| -rw-r--r-- | net/ipv6/ip6_input.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c index 2bab2aa59745..302d6fb1ff2b 100644 --- a/net/ipv6/ip6_input.c +++ b/net/ipv6/ip6_input.c | |||
| @@ -44,7 +44,7 @@ | |||
| 44 | #include <net/ip6_route.h> | 44 | #include <net/ip6_route.h> |
| 45 | #include <net/addrconf.h> | 45 | #include <net/addrconf.h> |
| 46 | #include <net/xfrm.h> | 46 | #include <net/xfrm.h> |
| 47 | 47 | #include <net/inet_ecn.h> | |
| 48 | 48 | ||
| 49 | 49 | ||
| 50 | int ip6_rcv_finish(struct sk_buff *skb) | 50 | int ip6_rcv_finish(struct sk_buff *skb) |
| @@ -109,6 +109,10 @@ int ipv6_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt | |||
| 109 | if (hdr->version != 6) | 109 | if (hdr->version != 6) |
| 110 | goto err; | 110 | goto err; |
| 111 | 111 | ||
| 112 | IP6_ADD_STATS_BH(dev_net(dev), idev, | ||
| 113 | IPSTATS_MIB_NOECTPKTS + | ||
| 114 | (ipv6_get_dsfield(hdr) & INET_ECN_MASK), | ||
| 115 | max_t(unsigned short, 1, skb_shinfo(skb)->gso_segs)); | ||
| 112 | /* | 116 | /* |
| 113 | * RFC4291 2.5.3 | 117 | * RFC4291 2.5.3 |
| 114 | * A packet received on an interface with a destination address | 118 | * A packet received on an interface with a destination address |
