Home
last modified time | relevance | path

Searched refs:countersize (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/net/bridge/netfilter/
Debtables.c1075 int ret, countersize; in do_replace() local
1097 countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids; in do_replace()
1098 newinfo = __vmalloc(sizeof(*newinfo) + countersize, GFP_KERNEL_ACCOUNT, in do_replace()
1103 if (countersize) in do_replace()
1104 memset(newinfo->counters, 0, countersize); in do_replace()
1149 int ret, i, countersize; in ebt_register_table() local
1164 countersize = COUNTER_OFFSET(repl->nentries) * nr_cpu_ids; in ebt_register_table()
1165 newinfo = vmalloc(sizeof(*newinfo) + countersize); in ebt_register_table()
1180 if (countersize) in ebt_register_table()
1181 memset(newinfo->counters, 0, countersize); in ebt_register_table()
[all …]
/Linux-v5.4/net/ipv4/netfilter/
Darp_tables.c645 unsigned int countersize; in alloc_counters() local
653 countersize = sizeof(struct xt_counters) * private->number; in alloc_counters()
654 counters = vzalloc(countersize); in alloc_counters()
Dip_tables.c792 unsigned int countersize; in alloc_counters() local
799 countersize = sizeof(struct xt_counters) * private->number; in alloc_counters()
800 counters = vzalloc(countersize); in alloc_counters()
/Linux-v5.4/net/ipv6/netfilter/
Dip6_tables.c808 unsigned int countersize; in alloc_counters() local
815 countersize = sizeof(struct xt_counters) * private->number; in alloc_counters()
816 counters = vzalloc(countersize); in alloc_counters()