From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH v3] net-netlink: Add a new attribute to expose TOS values via netlink Date: Wed, 12 Oct 2011 04:48:54 +0200 Message-ID: <1318387734.3686.2.camel@edumazet-laptop> References: <20111010145206.6f7e9ee2@nehalam.linuxnetplumber.net> <1318382887-31824-1-git-send-email-muralira@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , linux-kernel@vger.kernel.org, netdev@vger.kernel.org To: Muraliraja Muniraju Return-path: In-Reply-To: <1318382887-31824-1-git-send-email-muralira@google.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Le mardi 11 octobre 2011 =C3=A0 18:28 -0700, Muraliraja Muniraju a =C3=A9= crit : > From: Murali Raja >=20 > This patch exposes the tos value for the TCP sockets when the TOS fla= g > is requested in the ext_flags for the inet_diag request. This would m= ainly be > used to expose TOS values for both for TCP and UDP sockets. Currently= it is > supported for TCP. When netlink support for UDP would be added the su= pport > to expose the TOS values would alse be done. >=20 You could mention TCLASS support for IPv6 > Signed-off-by: Murali Raja > --- > Changelog since v2: > - Adding support for IPV6 class and using right API's > Changelog since v1: > - Removing reserved field=20 >=20 > include/linux/inet_diag.h | 9 ++++++++- > net/ipv4/inet_diag.c | 5 +++++ > 2 files changed, 13 insertions(+), 1 deletions(-) >=20 > diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h > index bc8c490..e36093d 100644 > --- a/include/linux/inet_diag.h > +++ b/include/linux/inet_diag.h > @@ -97,9 +97,10 @@ enum { > INET_DIAG_INFO, > INET_DIAG_VEGASINFO, > INET_DIAG_CONG, > + INET_DIAG_TOS, > }; > =20 > -#define INET_DIAG_MAX INET_DIAG_CONG > +#define INET_DIAG_MAX INET_DIAG_TOS > =20 >=20 > /* INET_DIAG_MEM */ > @@ -120,6 +121,12 @@ struct tcpvegas_info { > __u32 tcpv_minrtt; > }; > =20 > +/* INET_DIAG_TOS */ > + > +struct inet_diag_tos { > + __u8 idiag_tos; > +}; Are you sure its still needed ? I am now wondering what is done in TIME_WAIT state.