Home
last modified time | relevance | path

Searched refs:xt_counters (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/include/linux/netfilter/
Dx_tables.h306 struct xt_counters *xt_counters_alloc(unsigned int counters);
428 struct xt_counters *counter);
429 void xt_percpu_counter_free(struct xt_counters *cnt);
431 static inline struct xt_counters *
432 xt_get_this_cpu_counter(struct xt_counters *cnt) in xt_get_this_cpu_counter()
440 static inline struct xt_counters *
441 xt_get_per_cpu_counter(struct xt_counters *cnt, unsigned int cpu) in xt_get_per_cpu_counter()
/Linux-v5.4/include/uapi/linux/netfilter_arp/
Darp_tables.h29 #define arpt_counters xt_counters
109 struct xt_counters counters;
181 struct xt_counters __user *counters;
/Linux-v5.4/include/uapi/linux/netfilter_ipv4/
Dip_tables.h37 #define ipt_counters xt_counters
121 struct xt_counters counters;
203 struct xt_counters __user *counters;
/Linux-v5.4/include/uapi/linux/netfilter_ipv6/
Dip6_tables.h37 #define ip6t_counters xt_counters
125 struct xt_counters counters;
243 struct xt_counters __user *counters;
/Linux-v5.4/net/ipv4/netfilter/
Darp_tables.c222 struct xt_counters *counter; in arpt_do_table()
492 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks()
595 struct xt_counters counters[]) in get_counters()
606 struct xt_counters *tmp; in get_counters()
625 struct xt_counters counters[]) in get_old_counters()
633 struct xt_counters *tmp; in get_old_counters()
643 static struct xt_counters *alloc_counters(const struct xt_table *table) in alloc_counters()
646 struct xt_counters *counters; in alloc_counters()
653 countersize = sizeof(struct xt_counters) * private->number; in alloc_counters()
670 struct xt_counters *counters; in copy_entries_to_user()
[all …]
Dip_tables.c281 struct xt_counters *counter; in ipt_do_table()
631 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks()
741 struct xt_counters counters[]) in get_counters()
752 struct xt_counters *tmp; in get_counters()
771 struct xt_counters counters[]) in get_old_counters()
779 const struct xt_counters *tmp; in get_old_counters()
790 static struct xt_counters *alloc_counters(const struct xt_table *table) in alloc_counters()
793 struct xt_counters *counters; in alloc_counters()
799 countersize = sizeof(struct xt_counters) * private->number; in alloc_counters()
817 struct xt_counters *counters; in copy_entries_to_user()
[all …]
/Linux-v5.4/net/ipv6/netfilter/
Dip6_tables.c303 struct xt_counters *counter; in ip6t_do_table()
649 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks()
758 struct xt_counters counters[]) in get_counters()
769 struct xt_counters *tmp; in get_counters()
788 struct xt_counters counters[]) in get_old_counters()
796 const struct xt_counters *tmp; in get_old_counters()
806 static struct xt_counters *alloc_counters(const struct xt_table *table) in alloc_counters()
809 struct xt_counters *counters; in alloc_counters()
815 countersize = sizeof(struct xt_counters) * private->number; in alloc_counters()
833 struct xt_counters *counters; in copy_entries_to_user()
[all …]
/Linux-v5.4/include/uapi/linux/netfilter/
Dx_tables.h110 struct xt_counters { struct
122 struct xt_counters counters[0]; argument
/Linux-v5.4/net/netfilter/
Dx_tables.c1086 size = sizeof(struct xt_counters); in xt_copy_counters_from_user()
1337 struct xt_counters *xt_counters_alloc(unsigned int counters) in xt_counters_alloc()
1339 struct xt_counters *mem; in xt_counters_alloc()
1834 struct xt_counters *counter) in xt_percpu_counter_alloc()
1857 void xt_percpu_counter_free(struct xt_counters *counters) in xt_percpu_counter_free()