Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 5 of 5) sorted by relevance

/net/bridge/netfilter/
Debtables.c2048 unsigned int offsets[4]; in size_entry_mwt() local
2070 offsets[0] = sizeof(struct ebt_entry); /* matches come first */ in size_entry_mwt()
2071 memcpy(&offsets[1], &entry->watchers_offset, in size_entry_mwt()
2072 sizeof(offsets) - sizeof(offsets[0])); in size_entry_mwt()
2078 ret = ebt_buf_add(state, &offsets[1], in size_entry_mwt()
2079 sizeof(offsets) - sizeof(offsets[0])); in size_entry_mwt()
2091 if (offsets[i] > *total) in size_entry_mwt()
2094 if (i < 3 && offsets[i] == *total) in size_entry_mwt()
2099 if (offsets[i-1] > offsets[i]) in size_entry_mwt()
2106 char *buf = buf_start + offsets[i]; in size_entry_mwt()
[all …]
/net/ipv4/netfilter/
Darp_tables.c303 unsigned int *offsets) in mark_source_chains() argument
368 if (!xt_find_jump_offset(offsets, newpos, in mark_source_chains()
525 unsigned int *offsets; in translate_table() local
538 offsets = xt_alloc_entry_offsets(newinfo->number); in translate_table()
539 if (!offsets) in translate_table()
553 offsets[i] = (void *)iter - entry0; in translate_table()
568 if (!mark_source_chains(newinfo, repl->valid_hooks, entry0, offsets)) { in translate_table()
572 kvfree(offsets); in translate_table()
595 kvfree(offsets); in translate_table()
Dip_tables.c370 unsigned int *offsets) in mark_source_chains() argument
432 if (!xt_find_jump_offset(offsets, newpos, in mark_source_chains()
666 unsigned int *offsets; in translate_table() local
679 offsets = xt_alloc_entry_offsets(newinfo->number); in translate_table()
680 if (!offsets) in translate_table()
693 offsets[i] = (void *)iter - entry0; in translate_table()
708 if (!mark_source_chains(newinfo, repl->valid_hooks, entry0, offsets)) { in translate_table()
712 kvfree(offsets); in translate_table()
735 kvfree(offsets); in translate_table()
/net/ipv6/netfilter/
Dip6_tables.c388 unsigned int *offsets) in mark_source_chains() argument
450 if (!xt_find_jump_offset(offsets, newpos, in mark_source_chains()
683 unsigned int *offsets; in translate_table() local
696 offsets = xt_alloc_entry_offsets(newinfo->number); in translate_table()
697 if (!offsets) in translate_table()
710 offsets[i] = (void *)iter - entry0; in translate_table()
725 if (!mark_source_chains(newinfo, repl->valid_hooks, entry0, offsets)) { in translate_table()
729 kvfree(offsets); in translate_table()
752 kvfree(offsets); in translate_table()
/net/netfilter/
Dx_tables.c961 bool xt_find_jump_offset(const unsigned int *offsets, in xt_find_jump_offset() argument
969 if (offsets[m] > target) in xt_find_jump_offset()
971 else if (offsets[m] < target) in xt_find_jump_offset()