MCPcopy Create free account
hub / github.com/bsauce/kernel-exploit-factory / create_table

Function create_table

CVE-2022-1015/exploit/helpers.c:234–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234int create_table(struct mnl_socket* nl, char* name, uint16_t family, int* seq, uint64_t (*result_handler)(struct mnl_socket*, int, int))
235{
236 struct nftnl_table* t = build_table(name, family);
237
238 return send_batch_request(
239 nl,
240 NFT_MSG_NEWTABLE | (NFT_TYPE_TABLE << 8),
241 NLM_F_CREATE, family, (void**)&t, seq,
242 result_handler
243 );
244}
245
246int create_chain(struct mnl_socket* nl, char* chain_name, char* table_name, uint16_t family, struct unft_base_chain_param* base_param, int* seq, uint64_t (*result_handler)(struct mnl_socket*, int, int))
247{

Callers 1

setup_nftablesFunction · 0.70

Calls 2

build_tableFunction · 0.85
send_batch_requestFunction · 0.85

Tested by

no test coverage detected