diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2011-12-30 04:53:32 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-31 01:42:19 +0400 |
commit | c0636faa539ec4205ec50e80844a5b0454b4bbaa (patch) | |
tree | 16af09a4c857a1ec45bf573e39c6b46fedbd103f /net/ipv4/inet_diag.c | |
parent | 5d2e5f274f9e9a06fb934dd45260e2616a9992e6 (diff) | |
download | linux-c0636faa539ec4205ec50e80844a5b0454b4bbaa.tar.xz |
inet_diag: Add the SKMEMINFO extension
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_diag.c')
-rw-r--r-- | net/ipv4/inet_diag.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c index fb2e47ff59f7..2240a8e8c44d 100644 --- a/net/ipv4/inet_diag.c +++ b/net/ipv4/inet_diag.c @@ -136,6 +136,10 @@ int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk, minfo->idiag_tmem = sk_wmem_alloc_get(sk); } + if (ext & (1 << (INET_DIAG_SKMEMINFO - 1))) + if (sock_diag_put_meminfo(sk, skb, INET_DIAG_SKMEMINFO)) + goto rtattr_failure; + if (icsk == NULL) { r->idiag_rqueue = r->idiag_wqueue = 0; goto out; |