diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2007-11-14 04:30:01 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 22:53:33 (GMT) |
commit | 33c732c36169d7022ad7d6eb474b0c9be43a2dc1 (patch) | |
tree | a9ac2b8a488cc288bfd2f407d8ad9dd592b29055 /net/core/sock.c | |
parent | 6ff7751d06f63131830102ffa0c9a38b313f100e (diff) | |
download | linux-fsl-qoriq-33c732c36169d7022ad7d6eb474b0c9be43a2dc1.tar.xz |
[IPV4]: Add raw drops counter.
Add raw drops counter for IPv4 in /proc/net/raw .
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
-rw-r--r-- | net/core/sock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index c519b43..2029d09 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -1611,6 +1611,7 @@ void sock_init_data(struct socket *sock, struct sock *sk) sk->sk_stamp = ktime_set(-1L, -1L); atomic_set(&sk->sk_refcnt, 1); + atomic_set(&sk->sk_drops, 0); } void fastcall lock_sock_nested(struct sock *sk, int subclass) |