| 232 | } |
| 233 | |
| 234 | int 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 | |
| 246 | int 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 | { |
no test coverage detected