Lines Matching refs:counters
256 ADD_COUNTER(e->counters, hdr_len, 1);
352 e->counters.pcnt = pos;
388 pos = e->counters.pcnt;
389 e->counters.pcnt = 0;
403 e->counters.pcnt = pos;
428 e->counters.pcnt = pos;
543 /* Clear counters and comefrom */
544 e->counters = ((struct xt_counters) { 0, 0 });
651 /* Gets counters. */
656 ADD_COUNTER(total[*i], e->counters.bcnt, e->counters.pcnt);
666 SET_COUNTER(total[*i], e->counters.bcnt, e->counters.pcnt);
673 struct xt_counters counters[])
680 * the counters and using adds, we set the counters
690 counters,
700 counters,
711 struct xt_counters *counters;
716 /* We need atomic snapshot of counters: rest doesn't change
721 counters = vmalloc_node(countersize, numa_node_id());
723 if (counters == NULL)
726 /* First, sum counters... */
728 get_counters(private, counters);
738 /* ... then go back and fix counters and names */
744 + offsetof(struct arpt_entry, counters),
745 &counters[num],
746 sizeof(counters[num])) != 0) {
763 vfree(counters);
800 struct xt_counters *counters;
829 counters = vmalloc(tmp.num_counters * sizeof(struct xt_counters));
830 if (!counters) {
872 /* Get the old counters. */
873 get_counters(oldinfo, counters);
879 if (copy_to_user(tmp.counters, counters,
882 vfree(counters);
892 vfree(counters);
906 ADD_COUNTER(e->counters, addme[*i].bcnt, addme[*i].pcnt);
955 paddc->counters,