mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
inet_diag: Add the SKMEMINFO extension
Signed-off-by: Pavel Emelyanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
5d2e5f274f
commit
c0636faa53
2 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue