ebt_counter
struct ebt_counter counters[] ____cacheline_aligned;
struct ebt_counter __user *counters;
struct ebt_counter *counters;
struct ebt_counter *counterstmp = NULL;
array_size(repl->num_counters, sizeof(struct ebt_counter)))) {
NR_CPUS - SMP_CACHE_BYTES) / sizeof(struct ebt_counter))
if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter))
struct ebt_counter __user *counters,
struct ebt_counter *tmp;
if (len != sizeof(hlp) + hlp.num_counters * sizeof(struct ebt_counter))
const struct ebt_counter *oldcounters,
struct ebt_counter *counterstmp;
array_size(nentries, sizeof(struct ebt_counter))))
const struct ebt_counter *oldcounters;
(tmp.num_counters ? nentries * sizeof(struct ebt_counter) : 0))
struct ebt_counter *oldcounters;
(tmp.num_counters? tinfo.nentries * sizeof(struct ebt_counter): 0)) {
struct ebt_counter *counter_base, *cb_base;
NR_CPUS - SMP_CACHE_BYTES) / sizeof(struct ebt_counter))
if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter))
if (len != sizeof(hlp) + hlp.num_counters * sizeof(struct ebt_counter))
#define COUNTER_OFFSET(n) (SMP_ALIGN(n * sizeof(struct ebt_counter)))
#define COUNTER_BASE(c, n, cpu) ((struct ebt_counter *)(((char *)c) + \
static void get_counters(const struct ebt_counter *oldcounters,
struct ebt_counter *counters, unsigned int nentries)
struct ebt_counter *counter_base;
sizeof(struct ebt_counter) * nentries);