diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2007-11-13 23:30:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:53:33 -0500 |
commit | 33c732c36169d7022ad7d6eb474b0c9be43a2dc1 (patch) | |
tree | a9ac2b8a488cc288bfd2f407d8ad9dd592b29055 /net/core/sock.c | |
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/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 c519b439b8b1..2029d095b4c5 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) | |||
1611 | sk->sk_stamp = ktime_set(-1L, -1L); | 1611 | sk->sk_stamp = ktime_set(-1L, -1L); |
1612 | 1612 | ||
1613 | atomic_set(&sk->sk_refcnt, 1); | 1613 | atomic_set(&sk->sk_refcnt, 1); |
1614 | atomic_set(&sk->sk_drops, 0); | ||
1614 | } | 1615 | } |
1615 | 1616 | ||
1616 | void fastcall lock_sock_nested(struct sock *sk, int subclass) | 1617 | void fastcall lock_sock_nested(struct sock *sk, int subclass) |