• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/iptables-1.x/libiptc/

Lines Matching refs:counters

114 	STRUCT_COUNTERS counters;	/* per-chain counters */
378 memcpy(&h->chain_iterator_cur->counters, &pr->entry->counters,
379 sizeof(h->chain_iterator_cur->counters));
667 /* set policy-counters */
668 memcpy(&foot->e.counters, &c->counters, sizeof(STRUCT_COUNTERS));
1157 STRUCT_COUNTERS *counters,
1175 *counters = c->counters;
1624 /* Zeroes the counters in a chain. */
1671 return &r->entry[0].counters;
1706 STRUCT_COUNTERS *counters,
1729 memcpy(&e->counters, counters, sizeof(STRUCT_COUNTERS));
1892 STRUCT_COUNTERS *counters,
1920 if (counters) {
1921 /* set byte and packet counters */
1922 memcpy(&c->counters, counters, sizeof(STRUCT_COUNTERS));
1952 newcounters->counters[index] = ((STRUCT_COUNTERS) { 0, 0});
1968 newcounters->counters[index] = repl->counters[mappos];
1976 STRUCT_COUNTERS *counters)
1985 subtract_counters(&newcounters->counters[index],
1986 &repl->counters[mappos],
1987 counters);
1993 STRUCT_COUNTERS *counters)
1997 memcpy(&newcounters->counters[index], counters,
2007 /* Replace, then map back the counters. */
2040 /* These are the old counters we will get from kernel */
2041 repl->counters = malloc(sizeof(STRUCT_COUNTERS)
2043 if (!repl->counters) {
2047 /* These are the counters we're going to put back, later. */
2088 /* Put counters back. */
2095 /* Builtin chains have their own counters */
2111 &c->counters);
2115 &c->counters);
2137 &r->entry->counters);
2142 &r->entry->counters);
2153 `counters' is on 64-bit boundary). */
2154 u_int64_t *kernptr = (u_int64_t *)&newcounters->counters;
2155 if ((unsigned long)&newcounters->counters % 8 != 0) {
2157 "counters alignment incorrect! Mail rusty!\n");
2160 *kernptr = newcounters->counters;
2180 free(repl->counters);
2191 free(repl->counters);