]> git.baikalelectronics.ru Git - kernel.git/commit
diag: warn about missing first netlink attribute
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 28 Nov 2013 17:31:05 +0000 (18:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Nov 2013 23:16:43 +0000 (18:16 -0500)
commitbe590fff4ed60d5b4baa322559747a0bc78bc47e
treeef6bcbdf299368ce10c909aeff6302588f17f656
parentd4af2e1d2f43d2df090a4e54b08c31c2187791fe
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>
include/uapi/linux/netlink_diag.h
include/uapi/linux/packet_diag.h
include/uapi/linux/unix_diag.h