summaryrefslogtreecommitdiff
path: root/include/uapi/linux/unix_diag.h
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2013-11-28 21:31:05 +0400
committerDavid S. Miller <davem@davemloft.net>2013-11-29 03:16:43 +0400
commit31e20bad8d5871c6f8673c28ea26ab7a0e520086 (patch)
treeef6bcbdf299368ce10c909aeff6302588f17f656 /include/uapi/linux/unix_diag.h
parent2c7a9dc1641664173211c4ebc5db510a08684c46 (diff)
downloadlinux-31e20bad8d5871c6f8673c28ea26ab7a0e520086.tar.xz
diag: warn about missing first netlink attribute
The first netlink attribute (value 0) must always be defined as none/unspec. This is correctly done in inet_diag.h, but other diag interfaces are wrong. Because we cannot change an existing API, I add a comment to point the mistake and avoid to propagate it in a new diag API in the future. CC: Thomas Graf <tgraf@suug.ch> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/unix_diag.h')
-rw-r--r--include/uapi/linux/unix_diag.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/unix_diag.h b/include/uapi/linux/unix_diag.h
index b9e2a6a7446f..1eb0b8dd1830 100644
--- a/include/uapi/linux/unix_diag.h
+++ b/include/uapi/linux/unix_diag.h
@@ -31,6 +31,7 @@ struct unix_diag_msg {
};
enum {
+ /* UNIX_DIAG_NONE, standard nl API requires this attribute! */
UNIX_DIAG_NAME,
UNIX_DIAG_VFS,
UNIX_DIAG_PEER,