From: Pavel Emelyanov <xemul@parallels•com>
To: David Miller <davem@davemloft•net>,
Linux Netdev List <netdev@vger•kernel.org>
Subject: [PATCH 2/5] tcp_diag: Report max ack backlog as separate nla
Date: Wed, 28 Dec 2011 17:37:10 +0400 [thread overview]
Message-ID: <4EFB1B86.7090905@parallels.com> (raw)
Since it's thrown away from the core message let's nonetheless report it.
Signed-off-by: Pavel Emelyanov <xemul@parallels•com>
---
include/linux/inet_diag.h | 1 +
net/ipv4/inet_diag.c | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h
index d274712..4cdbfe9 100644
--- a/include/linux/inet_diag.h
+++ b/include/linux/inet_diag.h
@@ -108,6 +108,7 @@ enum {
INET_DIAG_CONG,
INET_DIAG_TOS,
INET_DIAG_TCLASS,
+ INET_DIAG_MAX_ACK_BACKLOG,
};
#define INET_DIAG_MAX INET_DIAG_TCLASS
diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c
index 91f9092..8cef079 100644
--- a/net/ipv4/inet_diag.c
+++ b/net/ipv4/inet_diag.c
@@ -109,6 +109,10 @@ int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk,
r->id.idiag_src[0] = inet->inet_rcv_saddr;
r->id.idiag_dst[0] = inet->inet_daddr;
+ if (ext & (1 << (INET_DIAG_MAX_ACK_BACKLOG - 1)))
+ RTA_PUT_U8(skb, INET_DIAG_MAX_ACK_BACKLOG,
+ sk->sk_max_ack_backlog);
+
/* IPv6 dual-stack sockets use inet->tos for IPv4 connections,
* hence this needs to be included regardless of socket family.
*/
--
1.5.5.6
next reply other threads:[~2011-12-28 13:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-28 13:37 Pavel Emelyanov [this message]
2011-12-28 18:44 ` [PATCH 2/5] tcp_diag: Report max ack backlog as separate nla David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EFB1B86.7090905@parallels.com \
--to=xemul@parallels$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox