[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>
This commit is contained in:
committed by
David S. Miller
parent
6ff7751d06
commit
33c732c361
@ -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)
|
||||
|
Reference in New Issue
Block a user