]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tipc: change family attribute from u32 to u16
authorJon Maloy <jon.maloy@ericsson.com>
Wed, 15 Nov 2017 16:25:44 +0000 (17:25 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 16 Nov 2017 23:58:48 +0000 (15:58 -0800)
commitaab3661bd2a17f60ec45322c5f83c40a857ff1b2
treef3c4ce2e96e4333cb1f8c2598fa7f5e9305e5abc
parenta60742aaf45908660723d45c9bac448fc997c203
tipc: change family attribute from u32 to u16

commit 28033ae4e0f ("net: netlink: Update attr validation to require
exact length for some types") introduces a stricter control on attributes
of type NLA_U* and NLA_S*.

Since the tipc tool is sending a family attribute of u32 instead of as
expected u16 the tool is now effectively broken.

We fix this by changing the type of the said attribute.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
tipc/msg.c