]> Pileus Git - ~andy/linux/blobdiff - net/core/sock_diag.c
sock_diag: add SK_MEMINFO_BACKLOG
[~andy/linux] / net / core / sock_diag.c
index 5fd146720f395ff91e85c3ab5ae7f4d543a5e75e..0d934ce1075f2a5912440123ccded872df37c618 100644 (file)
@@ -46,6 +46,7 @@ int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype)
        mem[SK_MEMINFO_FWD_ALLOC] = sk->sk_forward_alloc;
        mem[SK_MEMINFO_WMEM_QUEUED] = sk->sk_wmem_queued;
        mem[SK_MEMINFO_OPTMEM] = atomic_read(&sk->sk_omem_alloc);
+       mem[SK_MEMINFO_BACKLOG] = sk->sk_backlog.len;
 
        return 0;