diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2007-11-13 20:30:01 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:53:33 -0800 |
commit | 33c732c36169d7022ad7d6eb474b0c9be43a2dc1 (patch) | |
tree | a9ac2b8a488cc288bfd2f407d8ad9dd592b29055 /net/core | |
parent | 6ff7751d06f63131830102ffa0c9a38b313f100e (diff) |
[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')
-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 c519b439b8b..2029d095b4c 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) |