summaryrefslogtreecommitdiffstats
path: root/src/systemd/sd-netlink.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-06-19 14:58:41 +0200
committerFlorian Westphal <fw@strlen.de>2020-12-16 00:35:56 +0100
commit99c41c0de4e65bd881bccda3796481d3dc2007d2 (patch)
tree5cbf86e1597289d427a1cc0805f6431435f14133 /src/systemd/sd-netlink.h
parentsd-netlink: add nfnetlink helper routines (diff)
downloadsystemd-99c41c0de4e65bd881bccda3796481d3dc2007d2.tar.xz
systemd-99c41c0de4e65bd881bccda3796481d3dc2007d2.zip
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.
Diffstat (limited to '')
-rw-r--r--src/systemd/sd-netlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemd/sd-netlink.h b/src/systemd/sd-netlink.h
index 15fa84de28..2b52c4ca88 100644
--- a/src/systemd/sd-netlink.h
+++ b/src/systemd/sd-netlink.h
@@ -60,6 +60,7 @@ sd_netlink *sd_netlink_ref(sd_netlink *nl);
sd_netlink *sd_netlink_unref(sd_netlink *nl);
int sd_netlink_send(sd_netlink *nl, sd_netlink_message *message, uint32_t *serial);
+int sd_netlink_sendv(sd_netlink *nl, sd_netlink_message *messages[], size_t msgcnt, uint32_t **ret_serial);
int sd_netlink_call_async(sd_netlink *nl, sd_netlink_slot **ret_slot, sd_netlink_message *message,
sd_netlink_message_handler_t callback, sd_netlink_destroy_t destoy_callback,
void *userdata, uint64_t usec, const char *description);