Searched refs:hook_entry (Results 1 - 14 of 14) sorted by relevance

/linux-4.1.27/net/bridge/netfilter/
H A Debtables.c215 chaininfo = private->hook_entry[hook]; ebt_do_table()
216 nentries = private->hook_entry[hook]->nentries; ebt_do_table()
217 point = (struct ebt_entry *)(private->hook_entry[hook]->data); ebt_do_table()
218 counter_base = cb_base + private->hook_entry[hook]->counter_offset; ebt_do_table()
429 newinfo->hook_entry[i] = NULL; ebt_verify_pointers()
444 if ((char __user *)repl->hook_entry[i] == ebt_verify_pointers()
458 newinfo->hook_entry[i] = (struct ebt_entries *)e; ebt_verify_pointers()
479 if (!newinfo->hook_entry[i] && ebt_verify_pointers()
501 if ((void *)e == (void *)newinfo->hook_entry[i]) ebt_check_entry_size_and_hooks()
571 if (newinfo->hook_entry[i] == (struct ebt_entries *)e) ebt_get_udc_positions()
680 if (!newinfo->hook_entry[i]) ebt_check_entry()
682 if ((char *)newinfo->hook_entry[i] < (char *)e) ebt_check_entry()
843 while (i < NF_BR_NUMHOOKS && !newinfo->hook_entry[i]) translate_table()
849 if (newinfo->hook_entry[i] != (struct ebt_entries *)newinfo->entries) { translate_table()
856 if (!newinfo->hook_entry[j]) translate_table()
858 if (newinfo->hook_entry[j] <= newinfo->hook_entry[i]) { translate_table()
925 if (newinfo->hook_entry[i])
926 if (check_chainloops(newinfo->hook_entry[i],
1199 newinfo->hook_entry[i] = NULL; ebt_register_table()
1201 newinfo->hook_entry[i] = p + ebt_register_table()
1202 ((char *)repl->hook_entry[i] - repl->entries); ebt_register_table()
1566 compat_uptr_t hook_entry[NF_BR_NUMHOOKS]; member in struct:compat_ebt_replace
1768 const void *hookptr = info->hook_entry[i]; compat_calc_entry()
1769 if (info->hook_entry[i] && compat_calc_entry()
1771 newinfo->hook_entry[i] -= off; compat_calc_entry()
1773 newinfo->hook_entry[i] + off, compat_calc_entry()
1774 newinfo->hook_entry[i]); compat_calc_entry()
2163 memcpy(repl, &tmp, offsetof(struct ebt_replace, hook_entry)); compat_copy_ebt_replace_from_user()
2165 /* starting with hook_entry, 32 vs. 64 bit structures are different */ compat_copy_ebt_replace_from_user()
2167 repl->hook_entry[i] = compat_ptr(tmp.hook_entry[i]); compat_copy_ebt_replace_from_user()
2246 if (tmp.hook_entry[i]) { compat_do_replace()
2248 usrptr = (char __user *) tmp.hook_entry[i]; compat_do_replace()
2251 tmp.hook_entry[i] = (struct ebt_entries __user *)usrptr; compat_do_replace()
H A Debtable_broute.c30 .hook_entry = {
H A Debtable_filter.c36 .hook_entry = {
H A Debtable_nat.c36 .hook_entry = {
/linux-4.1.27/net/ipv4/netfilter/
H A Darp_tables.c280 e = get_entry(table_base, private->hook_entry[hook]); arpt_do_table()
376 unsigned int pos = newinfo->hook_entry[hook]; mark_source_chains()
587 newinfo->hook_entry[h] = hook_entries[h]; check_entry_size_and_hooks()
634 newinfo->hook_entry[i] = 0xFFFFFFFF; translate_table()
645 repl->hook_entry, translate_table()
670 if (newinfo->hook_entry[i] == 0xFFFFFFFF) { translate_table()
672 i, repl->hook_entry[i]); translate_table()
852 if (info->hook_entry[i] && compat_calc_entry()
853 (e < (struct arpt_entry *)(base + info->hook_entry[i]))) compat_calc_entry()
854 newinfo->hook_entry[i] -= off; compat_calc_entry()
923 memcpy(info.hook_entry, private->hook_entry, get_info()
924 sizeof(info.hook_entry)); get_info()
1269 newinfo->hook_entry[h] = hook_entries[h]; check_compat_entry_size_and_hooks()
1312 if ((unsigned char *)de - base < newinfo->hook_entry[h]) compat_copy_entry_from_user()
1313 newinfo->hook_entry[h] -= origsize - *size; compat_copy_entry_from_user()
1344 info->hook_entry[i] = 0xFFFFFFFF; translate_compat_table()
1377 if (info->hook_entry[i] == 0xFFFFFFFF) {
1396 newinfo->hook_entry[i] = info->hook_entry[i];
1481 u32 hook_entry[NF_ARP_NUMHOOKS]; member in struct:compat_arpt_replace
1523 tmp.num_entries, tmp.hook_entry, compat_do_replace()
H A Dip_tables.c265 root = get_entry(table_base, private->hook_entry[hook]); trace_packet()
270 xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) trace_packet()
339 e = get_entry(table_base, private->hook_entry[hook]); ipt_do_table()
452 unsigned int pos = newinfo->hook_entry[hook]; mark_source_chains()
750 newinfo->hook_entry[h] = hook_entries[h]; check_entry_size_and_hooks()
804 newinfo->hook_entry[i] = 0xFFFFFFFF; translate_table()
814 repl->hook_entry, translate_table()
836 if (newinfo->hook_entry[i] == 0xFFFFFFFF) { translate_table()
838 i, repl->hook_entry[i]); translate_table()
1040 if (info->hook_entry[i] && compat_calc_entry()
1041 (e < (struct ipt_entry *)(base + info->hook_entry[i]))) compat_calc_entry()
1042 newinfo->hook_entry[i] -= off; compat_calc_entry()
1111 memcpy(info.hook_entry, private->hook_entry, get_info()
1112 sizeof(info.hook_entry)); get_info()
1397 u32 hook_entry[NF_INET_NUMHOOKS]; member in struct:compat_ipt_replace
1543 newinfo->hook_entry[h] = hook_entries[h];
1597 if ((unsigned char *)de - base < newinfo->hook_entry[h])
1598 newinfo->hook_entry[h] -= origsize - *size;
1666 info->hook_entry[i] = 0xFFFFFFFF; translate_compat_table()
1699 if (info->hook_entry[i] == 0xFFFFFFFF) {
1718 newinfo->hook_entry[i] = info->hook_entry[i];
1834 tmp.num_entries, tmp.hook_entry, compat_do_replace()
/linux-4.1.27/net/netfilter/
H A Dxt_repldata.h40 tbl->repl.hook_entry[hooknum] = bytes; \
/linux-4.1.27/net/ipv6/netfilter/
H A Dip6_tables.c294 root = get_entry(table_base, private->hook_entry[hook]); trace_packet()
299 xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) trace_packet()
365 e = get_entry(table_base, private->hook_entry[hook]); ip6t_do_table()
465 unsigned int pos = newinfo->hook_entry[hook]; mark_source_chains()
764 newinfo->hook_entry[h] = hook_entries[h]; check_entry_size_and_hooks()
817 newinfo->hook_entry[i] = 0xFFFFFFFF; translate_table()
827 repl->hook_entry, translate_table()
849 if (newinfo->hook_entry[i] == 0xFFFFFFFF) { translate_table()
851 i, repl->hook_entry[i]); translate_table()
1053 if (info->hook_entry[i] && compat_calc_entry()
1054 (e < (struct ip6t_entry *)(base + info->hook_entry[i]))) compat_calc_entry()
1055 newinfo->hook_entry[i] -= off; compat_calc_entry()
1124 memcpy(info.hook_entry, private->hook_entry, get_info()
1125 sizeof(info.hook_entry)); get_info()
1412 u32 hook_entry[NF_INET_NUMHOOKS]; member in struct:compat_ip6t_replace
1558 newinfo->hook_entry[h] = hook_entries[h];
1610 if ((unsigned char *)de - base < newinfo->hook_entry[h])
1611 newinfo->hook_entry[h] -= origsize - *size;
1679 info->hook_entry[i] = 0xFFFFFFFF; translate_compat_table()
1712 if (info->hook_entry[i] == 0xFFFFFFFF) {
1731 newinfo->hook_entry[i] = info->hook_entry[i];
1847 tmp.num_entries, tmp.hook_entry, compat_do_replace()
/linux-4.1.27/include/uapi/linux/netfilter_arp/
H A Darp_tables.h142 unsigned int hook_entry[NF_ARP_NUMHOOKS]; member in struct:arpt_getinfo
170 unsigned int hook_entry[NF_ARP_NUMHOOKS]; member in struct:arpt_replace
/linux-4.1.27/include/uapi/linux/netfilter_bridge/
H A Debtables.h48 struct ebt_entries __user *hook_entry[NF_BR_NUMHOOKS]; member in struct:ebt_replace
64 struct ebt_entries *hook_entry[NF_BR_NUMHOOKS]; member in struct:ebt_replace_kernel
/linux-4.1.27/include/uapi/linux/netfilter_ipv4/
H A Dip_tables.h164 unsigned int hook_entry[NF_INET_NUMHOOKS]; member in struct:ipt_getinfo
192 unsigned int hook_entry[NF_INET_NUMHOOKS]; member in struct:ipt_replace
/linux-4.1.27/include/uapi/linux/netfilter_ipv6/
H A Dip6_tables.h204 unsigned int hook_entry[NF_INET_NUMHOOKS]; member in struct:ip6t_getinfo
232 unsigned int hook_entry[NF_INET_NUMHOOKS]; member in struct:ip6t_replace
/linux-4.1.27/include/linux/netfilter_bridge/
H A Debtables.h87 struct ebt_entries *hook_entry[NF_BR_NUMHOOKS]; member in struct:ebt_table_info
/linux-4.1.27/include/linux/netfilter/
H A Dx_tables.h215 unsigned int hook_entry[NF_INET_NUMHOOKS]; member in struct:xt_table_info

Completed in 242 milliseconds