Lines Matching refs:arpt_entry

165 arpt_get_target_c(const struct arpt_entry *e)  in arpt_get_target_c()
167 return arpt_get_target((struct arpt_entry *)e); in arpt_get_target_c()
170 static inline struct arpt_entry *
173 return (struct arpt_entry *)(base + offset); in get_entry()
177 struct arpt_entry *arpt_next_entry(const struct arpt_entry *entry) in arpt_next_entry()
191 struct arpt_entry *e, **jumpstack; in arpt_do_table()
210 jumpstack = (struct arpt_entry **)private->jumpstack[cpu]; in arpt_do_table()
291 static inline bool unconditional(const struct arpt_entry *e) in unconditional()
295 return e->target_offset == sizeof(struct arpt_entry) && in unconditional()
313 struct arpt_entry *e = entry0 + pos; in mark_source_chains()
388 static int check_target(struct arpt_entry *e, struct net *net, const char *name) in check_target()
405 find_check_entry(struct arpt_entry *e, struct net *net, const char *name, in find_check_entry()
437 static bool check_underflow(const struct arpt_entry *e) in check_underflow()
452 static inline int check_entry_size_and_hooks(struct arpt_entry *e, in check_entry_size_and_hooks()
463 if ((unsigned long)e % __alignof__(struct arpt_entry) != 0 || in check_entry_size_and_hooks()
464 (unsigned char *)e + sizeof(struct arpt_entry) >= limit || in check_entry_size_and_hooks()
469 < sizeof(struct arpt_entry) + sizeof(struct xt_entry_target)) in check_entry_size_and_hooks()
500 static void cleanup_entry(struct arpt_entry *e, struct net *net) in cleanup_entry()
525 struct arpt_entry *iter; in translate_table()
603 struct arpt_entry *iter; in get_counters()
633 struct arpt_entry *iter; in get_old_counters()
675 const struct arpt_entry *e; in copy_entries_to_user()
698 + offsetof(struct arpt_entry, counters), in copy_entries_to_user()
736 static int compat_calc_entry(const struct arpt_entry *e, in compat_calc_entry()
744 off = sizeof(struct arpt_entry) - sizeof(struct compat_arpt_entry); in compat_calc_entry()
756 (e < (struct arpt_entry *)(base + info->hook_entry[i]))) in compat_calc_entry()
759 (e < (struct arpt_entry *)(base + info->underflow[i]))) in compat_calc_entry()
768 struct arpt_entry *iter; in compat_table_info()
891 struct arpt_entry *iter; in __do_replace()
957 struct arpt_entry *iter; in do_replace()
1011 struct arpt_entry *iter; in do_add_counters()
1102 off = sizeof(struct arpt_entry) - sizeof(struct compat_arpt_entry); in check_compat_entry_size_and_hooks()
1134 struct arpt_entry *de; in compat_copy_entry_from_user()
1140 memcpy(de, e, sizeof(struct arpt_entry)); in compat_copy_entry_from_user()
1143 *dstptr += sizeof(struct arpt_entry); in compat_copy_entry_from_user()
1144 *size += sizeof(struct arpt_entry) - sizeof(struct compat_arpt_entry); in compat_copy_entry_from_user()
1259 struct arpt_entry *iter; in compat_do_replace()
1305 static int compat_copy_entry_to_user(struct arpt_entry *e, void __user **dstptr, in compat_copy_entry_to_user()
1318 if (copy_to_user(ce, e, sizeof(struct arpt_entry)) != 0 || in compat_copy_entry_to_user()
1324 *size -= sizeof(struct arpt_entry) - sizeof(struct compat_arpt_entry); in compat_copy_entry_to_user()
1349 struct arpt_entry *iter; in compat_copy_entries_to_user()
1495 struct arpt_entry *iter; in __arpt_unregister_table()
1536 struct arpt_entry *iter; in arpt_register_table()