]> git.ipfire.org Git - thirdparty/hostap.git/commit
netlink: Fix RTM_SETLINK padding at the end of the message
authorJouni Malinen <j@w1.fi>
Sun, 12 Oct 2014 16:07:17 +0000 (19:07 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 12 Oct 2014 16:27:16 +0000 (19:27 +0300)
commit54a800dd518eea0251a4fb0b412680ad73195f68
treee1a7b55ee5e0f93fe5d7682fd750cd815c57861a
parenta6938b79b42cb99e010c41457db8b71331bd8ebb
netlink: Fix RTM_SETLINK padding at the end of the message

While the kernel seems to have accepted the message to set linkmode and
operstate without the final attribute getting padded to 32-bit length,
it is better to get this cleaned up to match expected format. The double
NLMSG_ALIGN() followed by RTA_LENGTH() did not make much sense here.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/netlink.c
src/drivers/priv_netlink.h