Lines Matching refs:nfnl

18 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()
68 sd_netlink *nfnl, in sd_nfnl_nft_message_new_basechain() argument
80 r = nft_message_new(nfnl, &m, family, NFT_MSG_NEWCHAIN, NLM_F_CREATE); in sd_nfnl_nft_message_new_basechain()
117 sd_netlink *nfnl, in sd_nfnl_nft_message_del_table() argument
125 r = nft_message_new(nfnl, &m, family, NFT_MSG_DELTABLE, NLM_F_CREATE); in sd_nfnl_nft_message_del_table()
138 sd_netlink *nfnl, in sd_nfnl_nft_message_new_table() argument
146 r = nft_message_new(nfnl, &m, family, NFT_MSG_NEWTABLE, NLM_F_CREATE | NLM_F_EXCL); in sd_nfnl_nft_message_new_table()
159 sd_netlink *nfnl, in sd_nfnl_nft_message_new_rule() argument
168 r = nft_message_new(nfnl, &m, family, NFT_MSG_NEWRULE, NLM_F_CREATE); in sd_nfnl_nft_message_new_rule()
185 sd_netlink *nfnl, in sd_nfnl_nft_message_new_set() argument
196 r = nft_message_new(nfnl, &m, family, NFT_MSG_NEWSET, NLM_F_CREATE); in sd_nfnl_nft_message_new_set()
221 sd_netlink *nfnl, in sd_nfnl_nft_message_new_setelems_begin() argument
230 r = nft_message_new(nfnl, &m, family, NFT_MSG_NEWSETELEM, NLM_F_CREATE); in sd_nfnl_nft_message_new_setelems_begin()
251 sd_netlink *nfnl, in sd_nfnl_nft_message_del_setelems_begin() argument
260 r = nft_message_new(nfnl, &m, family, NFT_MSG_DELSETELEM, 0); in sd_nfnl_nft_message_del_setelems_begin()