• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/netfilter/

Lines Matching refs:counters

69    them in the softirq when updating the counters and therefore
72 the counters or update the rules.
261 ADD_COUNTER(e->counters, ntohs(ip->tot_len), 1);
384 e->counters.pcnt = pos;
428 pos = e->counters.pcnt;
429 e->counters.pcnt = 0;
443 e->counters.pcnt = pos;
467 e->counters.pcnt = pos;
659 /* Clear counters and comefrom */
660 e->counters = ((struct xt_counters) { 0, 0 });
766 /* Gets counters. */
772 ADD_COUNTER(total[*i], e->counters.bcnt, e->counters.pcnt);
783 SET_COUNTER(total[*i], e->counters.bcnt, e->counters.pcnt);
791 struct xt_counters counters[])
798 * the counters and using adds, we set the counters
808 counters,
818 counters,
826 struct xt_counters *counters;
829 /* We need atomic snapshot of counters: rest doesn't change
833 counters = vmalloc_node(countersize, numa_node_id());
835 if (counters == NULL)
838 /* First, sum counters... */
840 get_counters(private, counters);
843 return counters;
853 struct xt_counters *counters;
858 counters = alloc_counters(table);
859 if (IS_ERR(counters))
860 return PTR_ERR(counters);
873 /* ... then go back and fix counters and names */
881 + offsetof(struct ipt_entry, counters),
882 &counters[num],
883 sizeof(counters[num])) != 0) {
916 vfree(counters);
1157 struct xt_counters *counters;
1161 counters = vmalloc(num_counters * sizeof(struct xt_counters));
1162 if (!counters) {
1196 /* Get the old counters. */
1197 get_counters(oldinfo, counters);
1202 if (copy_to_user(counters_ptr, counters,
1205 vfree(counters);
1213 vfree(counters);
1262 tmp.counters);
1282 ADD_COUNTER(e->counters, addme[*i].bcnt, addme[*i].pcnt);
1381 compat_uptr_t counters; /* struct ipt_counters * */
1544 /* Clear counters and comefrom */
1545 e->counters = ((struct ipt_counters) { 0, 0 });
1788 compat_ptr(tmp.counters));
1838 struct xt_counters *counters;
1845 counters = alloc_counters(table);
1846 if (IS_ERR(counters))
1847 return PTR_ERR(counters);
1861 /* ... then go back and fix counters and names */
1872 offsetof(struct compat_ipt_entry, counters),
1873 &counters[num], sizeof(counters[num])))
1899 vfree(counters);