]> git.baikalelectronics.ru Git - kernel.git/commit
net-netlink: Add a new attribute to expose TOS values via netlink
authorMurali Raja <muralira@google.com>
Wed, 12 Oct 2011 09:00:35 +0000 (09:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Oct 2011 23:09:18 +0000 (19:09 -0400)
commit8c568b96d28f760d4899148bdc30b80202db6191
treeb3c3bc8a3312b432757e48674d0415ea6754d863
parent3f6b69093e593f7ed133c980e7e022c4e35e5719
net-netlink: Add a new attribute to expose TOS values via netlink

This patch exposes the tos value for the TCP sockets when the TOS flag
is requested in the ext_flags for the inet_diag request. This would mainly 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 support
to expose the TOS values would alse be done. For IPV4 tos value is exposed
and for IPV6 tclass value is exposed.

Signed-off-by: Murali Raja <muralira@google.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inet_diag.h
net/ipv4/inet_diag.c