Home
last modified time | relevance | path

Searched refs:nfnl (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-message-nfnl.c18 static int nft_message_new(sd_netlink *nfnl, sd_netlink_message **ret, int family, uint16_t msg_typ… in nft_message_new() argument
22 assert_return(nfnl, -EINVAL); in nft_message_new()
25 r = message_new(nfnl, &m, NFNL_SUBSYS_NFTABLES << 8 | msg_type); in nft_message_new()
34 .res_id = nfnl->serial, in nft_message_new()
41 static int nfnl_message_batch(sd_netlink *nfnl, sd_netlink_message **ret, uint16_t msg_type) { in nfnl_message_batch() argument
45 r = message_new(nfnl, &m, NFNL_SUBSYS_NONE << 8 | msg_type); in nfnl_message_batch()
59 int sd_nfnl_message_batch_begin(sd_netlink *nfnl, sd_netlink_message **ret) { in sd_nfnl_message_batch_begin() argument
60 return nfnl_message_batch(nfnl, ret, NFNL_MSG_BATCH_BEGIN); in sd_nfnl_message_batch_begin()
63 int sd_nfnl_message_batch_end(sd_netlink *nfnl, sd_netlink_message **ret) { in sd_nfnl_message_batch_end() argument
64 return nfnl_message_batch(nfnl, ret, NFNL_MSG_BATCH_END); in sd_nfnl_message_batch_end()
[all …]
Dnetlink-types-nfnl.c187 DEFINE_TYPE_SYSTEM(nfnl);
/systemd-251/src/shared/
Dfirewall-util-nft.c33 sd_netlink *nfnl, in nfnl_netlink_sendv() argument
40 assert(nfnl); in nfnl_netlink_sendv()
44 r = sd_netlink_sendv(nfnl, messages, msgcount, &serial); in nfnl_netlink_sendv()
53 tmp = sd_netlink_read(nfnl, serial[i], NFNL_DEFAULT_TIMEOUT_USECS, NULL); in nfnl_netlink_sendv()
321 static int sd_nfnl_message_new_masq_rule(sd_netlink *nfnl, sd_netlink_message **ret, int family, in sd_nfnl_message_new_masq_rule() argument
328 r = sd_nfnl_nft_message_new_rule(nfnl, &m, family, NFT_SYSTEMD_TABLE_NAME, chain); in sd_nfnl_message_new_masq_rule()
363 static int sd_nfnl_message_new_dnat_rule_pre(sd_netlink *nfnl, sd_netlink_message **ret, int family, in sd_nfnl_message_new_dnat_rule_pre() argument
373 r = sd_nfnl_nft_message_new_rule(nfnl, &m, family, NFT_SYSTEMD_TABLE_NAME, chain); in sd_nfnl_message_new_dnat_rule_pre()
420 static int sd_nfnl_message_new_dnat_rule_out(sd_netlink *nfnl, sd_netlink_message **ret, in sd_nfnl_message_new_dnat_rule_out() argument
428 r = sd_nfnl_nft_message_new_rule(nfnl, &m, family, NFT_SYSTEMD_TABLE_NAME, chain); in sd_nfnl_message_new_dnat_rule_out()
[all …]
Dfirewall-util-private.h23 sd_netlink *nfnl; member
/systemd-251/src/systemd/
Dsd-netlink.h215 int sd_nfnl_message_batch_begin(sd_netlink *nfnl, sd_netlink_message **ret);
216 int sd_nfnl_message_batch_end(sd_netlink *nfnl, sd_netlink_message **ret);
217 int sd_nfnl_nft_message_del_table(sd_netlink *nfnl, sd_netlink_message **ret,
219 int sd_nfnl_nft_message_new_table(sd_netlink *nfnl, sd_netlink_message **ret,
221 int sd_nfnl_nft_message_new_basechain(sd_netlink *nfnl, sd_netlink_message **ret,
224 int sd_nfnl_nft_message_new_rule(sd_netlink *nfnl, sd_netlink_message **ret,
226 int sd_nfnl_nft_message_new_set(sd_netlink *nfnl, sd_netlink_message **ret,
229 int sd_nfnl_nft_message_new_setelems_begin(sd_netlink *nfnl, sd_netlink_message **ret,
231 int sd_nfnl_nft_message_del_setelems_begin(sd_netlink *nfnl, sd_netlink_message **ret,
/systemd-251/src/libsystemd/
Dmeson.build139 'sd-netlink/netlink-message-nfnl.c',
147 'sd-netlink/netlink-types-nfnl.c',