summaryrefslogtreecommitdiffstats
path: root/include/linux/inet_diag.h
diff options
context:
space:
mode:
authorMurali Raja2011-10-12 11:00:35 +0200
committerDavid S. Miller2011-10-13 01:09:18 +0200
commit3ceca749668a52bd795585e0f71c6f0b04814f7b (patch)
treeb3c3bc8a3312b432757e48674d0415ea6754d863 /include/linux/inet_diag.h
parentcipso: remove an unneeded NULL check in cipso_v4_doi_add() (diff)
downloadkernel-qcow2-linux-3ceca749668a52bd795585e0f71c6f0b04814f7b.tar.gz
kernel-qcow2-linux-3ceca749668a52bd795585e0f71c6f0b04814f7b.tar.xz
kernel-qcow2-linux-3ceca749668a52bd795585e0f71c6f0b04814f7b.zip
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>
Diffstat (limited to 'include/linux/inet_diag.h')
-rw-r--r--include/linux/inet_diag.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h
index bc8c49022084..80b480c97532 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,
};
-#define INET_DIAG_MAX INET_DIAG_CONG
+#define INET_DIAG_MAX INET_DIAG_TOS
/* INET_DIAG_MEM */