]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-netlink: add sd_netlink_sendv
authorFlorian Westphal <fw@strlen.de>
Fri, 19 Jun 2020 12:58:41 +0000 (14:58 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 15 Dec 2020 23:35:56 +0000 (00:35 +0100)
commit99c41c0de4e65bd881bccda3796481d3dc2007d2
tree5cbf86e1597289d427a1cc0805f6431435f14133
parent347ea16797ee3962b745973f109951ab9fb1ce23
sd-netlink: add sd_netlink_sendv

nftables uses a transaction-based netlink model: one netlink write
comes with multiple messages.

A 'BEGIN' message to tell nf_tables/kernel that a new transaction starts.

Then, one more messages to add/delete tables/chains/rules etc.

Lastly, an END message that commits all changes.

This function will be used to send all the individual messages that should
make up a single transaction as a single write.
src/libsystemd/sd-netlink/netlink-internal.h
src/libsystemd/sd-netlink/netlink-socket.c
src/libsystemd/sd-netlink/sd-netlink.c
src/systemd/sd-netlink.h