Lines Matching full:repl
603 static inline int iptcc_compile_rule (TC_HANDLE_T h, STRUCT_REPLACE *repl, struct rule_head *r)
622 memcpy((char *)repl->entries+r->offset, r->entry, r->size);
628 static int iptcc_compile_chain(TC_HANDLE_T h, STRUCT_REPLACE *repl, struct chain_head *c)
638 head = (void *)repl
646 repl->hook_entry[c->hooknum-1] = c->head_offset;
647 repl->underflow[c->hooknum-1] = c->foot_offset;
652 ret = iptcc_compile_rule(h, repl, r);
658 foot = (void *)repl->entries + c->foot_offset;
734 static int iptcc_compile_table(TC_HANDLE_T h, STRUCT_REPLACE *repl)
741 int ret = iptcc_compile_chain(h, repl, c);
747 error = (void *)repl->entries + repl->size - IPTCB_CHAIN_ERROR_SIZE;
1979 STRUCT_REPLACE *repl,
1990 newcounters->counters[index] = repl->counters[mappos];
1995 STRUCT_REPLACE *repl,
2008 &repl->counters[mappos],
2030 STRUCT_REPLACE *repl;
2051 repl = malloc(sizeof(*repl) + new_size);
2052 if (!repl) {
2056 memset(repl, 0, sizeof(*repl) + new_size);
2066 repl->counters = malloc(sizeof(STRUCT_COUNTERS)
2068 if (!repl->counters) {
2080 strcpy(repl->name, (*handle)->info.name);
2081 repl->num_entries = new_number;
2082 repl->size = new_size;
2084 repl->num_counters = (*handle)->info.num_entries;
2085 repl->valid_hooks = (*handle)->info.valid_hooks;
2088 repl->num_entries, repl->size, repl->num_counters);
2090 ret = iptcc_compile_table(*handle, repl);
2102 write(fd, repl, sizeof(*repl) + repl->size);
2108 ret = setsockopt(sockfd, TC_IPPROTO, SO_SET_REPLACE, repl,
2109 sizeof(*repl) + repl->size);
2128 counters_normal_map(newcounters, repl,
2133 counters_map_zeroed(newcounters, repl,
2153 counters_normal_map(newcounters, repl,
2159 counters_map_zeroed(newcounters, repl,
2205 free(repl->counters);
2206 free(repl);
2216 free(repl->counters);
2218 free(repl);