]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: add NETLINK_CAP_ACK socket option
authorChristophe Ricard <christophe.ricard@gmail.com>
Fri, 28 Aug 2015 05:07:48 +0000 (07:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Aug 2015 05:25:42 +0000 (22:25 -0700)
commit1684d193f06836fd99ecd3d7d271a46adef8adbe
treeec9cd4b088e93a12c26ebf9fcb8b7bf5abe2510d
parent8424d60e8a3dd4d48b8c31ec02e8e05f4c399332
netlink: add NETLINK_CAP_ACK socket option

Since commit 6377a26781bd ("netlink: allow large data transfers from
user-space"), the kernel may fail to allocate the necessary room for the
acknowledgment message back to userspace. This patch introduces a new
socket option that trims off the payload of the original netlink message.

The netlink message header is still included, so the user can guess from
the sequence number what is the message that has triggered the
acknowledgment.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/netlink.h
net/netlink/af_netlink.c