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)
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>

No differences found