Searched refs:sp_tbl (Results 1 – 2 of 2) sorted by relevance
| /f-stack/dpdk/examples/ipsec-secgw/ |
| H A D | sp4.c | 109 extend_sp_arr(struct acl4_rules **sp_tbl, uint32_t cur_cnt, uint32_t *cur_sz) in extend_sp_arr() argument 111 if (*sp_tbl == NULL) { in extend_sp_arr() 112 *sp_tbl = calloc(INIT_ACL_RULE_NUM, sizeof(struct acl4_rules)); in extend_sp_arr() 113 if (*sp_tbl == NULL) in extend_sp_arr() 120 *sp_tbl = realloc(*sp_tbl, in extend_sp_arr() 122 if (*sp_tbl == NULL) in extend_sp_arr() 125 memset(&(*sp_tbl)[*cur_sz], 0, in extend_sp_arr()
|
| H A D | sp6.c | 158 extend_sp_arr(struct acl6_rules **sp_tbl, uint32_t cur_cnt, uint32_t *cur_sz) in extend_sp_arr() argument 160 if (*sp_tbl == NULL) { in extend_sp_arr() 161 *sp_tbl = calloc(INIT_ACL_RULE_NUM, sizeof(struct acl6_rules)); in extend_sp_arr() 162 if (*sp_tbl == NULL) in extend_sp_arr() 169 *sp_tbl = realloc(*sp_tbl, in extend_sp_arr() 171 if (*sp_tbl == NULL) in extend_sp_arr() 174 memset(&(*sp_tbl)[*cur_sz], 0, in extend_sp_arr()
|