Home
last modified time | relevance | path

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

/net/netfilter/
Dx_tables.c821 unsigned int target_offset, in xt_compat_check_entry_offsets() argument
828 if (target_offset < size_of_base_struct) in xt_compat_check_entry_offsets()
831 if (target_offset + sizeof(*t) > next_offset) in xt_compat_check_entry_offsets()
834 t = (void *)(e + target_offset); in xt_compat_check_entry_offsets()
838 if (target_offset + t->u.target_size > next_offset) in xt_compat_check_entry_offsets()
844 if (COMPAT_XT_ALIGN(target_offset + sizeof(*st)) != next_offset) in xt_compat_check_entry_offsets()
863 return xt_check_entry_match(elems, base + target_offset, in xt_compat_check_entry_offsets()
914 unsigned int target_offset, in xt_check_entry_offsets() argument
922 if (target_offset < size_of_base_struct) in xt_check_entry_offsets()
925 if (target_offset + sizeof(*t) > next_offset) in xt_check_entry_offsets()
[all …]
/net/ipv4/netfilter/
Dip_tables.c112 return e->target_offset == sizeof(struct ipt_entry) && in unconditional()
610 err = xt_check_entry_offsets(e, e->elems, e->target_offset, in check_entry_size_and_hooks()
848 i < e->target_offset; in copy_entries_to_user()
859 if (xt_target_to_user(t, userptr + off + e->target_offset)) { in copy_entries_to_user()
1224 u_int16_t target_offset, next_offset; in compat_copy_entry_to_user() local
1244 target_offset = e->target_offset - (origsize - *size); in compat_copy_entry_to_user()
1250 if (put_user(target_offset, &ce->target_offset) != 0 || in compat_copy_entry_to_user()
1312 e->target_offset, e->next_offset); in check_compat_entry_size_and_hooks()
1376 de->target_offset = e->target_offset - (origsize - *size); in compat_copy_entry_from_user()
Darp_tables.c295 return e->target_offset == sizeof(struct arpt_entry) && in unconditional()
475 err = xt_check_entry_offsets(e, e->elems, e->target_offset, in check_entry_size_and_hooks()
706 if (xt_target_to_user(t, userptr + off + e->target_offset)) { in copy_entries_to_user()
1097 ret = xt_compat_check_entry_offsets(e, e->elems, e->target_offset, in check_compat_entry_size_and_hooks()
1146 de->target_offset = e->target_offset - (origsize - *size); in compat_copy_entry_from_user()
1312 u_int16_t target_offset, next_offset; in compat_copy_entry_to_user() local
1326 target_offset = e->target_offset - (origsize - *size); in compat_copy_entry_to_user()
1333 if (put_user(target_offset, &ce->target_offset) != 0 || in compat_copy_entry_to_user()
/net/ipv6/netfilter/
Dip6_tables.c137 return e->target_offset == sizeof(struct ip6t_entry) && in unconditional()
628 err = xt_check_entry_offsets(e, e->elems, e->target_offset, in check_entry_size_and_hooks()
864 i < e->target_offset; in copy_entries_to_user()
875 if (xt_target_to_user(t, userptr + off + e->target_offset)) { in copy_entries_to_user()
1240 u_int16_t target_offset, next_offset; in compat_copy_entry_to_user() local
1260 target_offset = e->target_offset - (origsize - *size); in compat_copy_entry_to_user()
1266 if (put_user(target_offset, &ce->target_offset) != 0 || in compat_copy_entry_to_user()
1328 e->target_offset, e->next_offset); in check_compat_entry_size_and_hooks()
1392 de->target_offset = e->target_offset - (origsize - *size); in compat_copy_entry_from_user()
/net/bridge/netfilter/
Debtables.c435 size_t left = ((char *)e + e->target_offset) - (char *)w; in ebt_check_watcher()
571 e->watchers_offset > e->target_offset || in ebt_check_entry_size_and_hooks()
572 e->target_offset >= e->next_offset) in ebt_check_entry_size_and_hooks()
576 if (e->next_offset - e->target_offset < sizeof(struct ebt_entry_target)) in ebt_check_entry_size_and_hooks()
747 gap = e->next_offset - e->target_offset; in ebt_check_entry()
827 if (e->target_offset + sizeof(struct ebt_standard_target) > in check_chainloops()
1496 hlp = ubase + (((char *)e + e->target_offset) - base); in ebt_entry_to_user()
1716 u32 watchers_offset, target_offset, next_offset; in compat_copy_entry_to_user() local
1749 target_offset = e->target_offset - (origsize - *size); in compat_copy_entry_to_user()
1759 put_user(target_offset, &ce->target_offset) || in compat_copy_entry_to_user()