/asus-wl-520gu-7.0.1.45/src/router/iptables/ |
H A D | iptables-save.c | 19 static int binary = 0, counters = 0; variable 23 { "counters", 0, 0, 'c' }, 140 iptc_handle_t *h, const char *chain, int counters) 145 /* print counters */ 146 if (counters) 147 printf("[%llu:%llu] ", e->counters.pcnt, e->counters.bcnt); 281 print_rule(e, &h, chain, counters); 320 counters = 1; 139 print_rule(const struct ipt_entry *e, iptc_handle_t *h, const char *chain, int counters) argument
|
H A D | ip6tables-save.c | 21 static int binary = 0, counters = 0; variable 25 { "counters", 0, 0, 'c' }, 145 ip6tc_handle_t *h, const char *chain, int counters) 150 /* print counters */ 151 if (counters) 152 printf("[%llu:%llu] ", e->counters.pcnt, e->counters.bcnt); 288 print_rule(e, &h, chain, counters); 327 counters = 1; 144 print_rule(const struct ip6t_entry *e, ip6tc_handle_t *h, const char *chain, int counters) argument
|
H A D | iptables-restore.c | 24 static int binary = 0, counters = 0, verbose = 0, noflush = 0; variable 29 { "counters", 0, 0, 'c' }, 43 " [ --counters ]\n" 123 counters = 1; 230 if (counters) { 270 /* we have counters in our input */ 300 if (counters && pcnt && bcnt) { 301 add_argv("--set-counters");
|
H A D | ip6tables-restore.c | 27 static int binary = 0, counters = 0, verbose = 0, noflush = 0; variable 32 { "counters", 0, 0, 'c' }, 46 " [ --counters ]\n" 126 counters = 1; 233 if (counters) { 273 /* we have counters in our input */ 303 if (counters && pcnt && bcnt) { 304 add_argv("--set-counters");
|
H A D | iptables.c | 140 { "set-counters", 1, 0, 'c' }, 362 " --zero -Z [chain] Zero counters in chain or all chains\n" 393 " --set-counters PKTS BYTES set the counter during insert/append\n" 1081 struct ipt_counters counters; local 1082 const char *pol = iptc_get_policy(chain, &counters, handle); 1088 print_num(counters.pcnt, (format|FMT_NOTABLE)); 1090 print_num(counters.bcnt, (format|FMT_NOTABLE)); 1173 print_num(fw->counters.pcnt, format); 1174 print_num(fw->counters.bcnt, format); 1974 if (sscanf(pcnt, "%llu", &fw.counters [all...] |
H A D | ip6tables.c | 141 { "set-counters", 1, 0, 'c' }, 310 " --zero -Z [chain] Zero counters in chain or all chains\n" 341 " --set-counters PKTS BYTES set the counter during insert/append\n" 1080 struct ip6t_counters counters; local 1081 const char *pol = ip6tc_get_policy(chain, &counters, handle); 1087 print_num(counters.pcnt, (format|FMT_NOTABLE)); 1089 print_num(counters.bcnt, (format|FMT_NOTABLE)); 1172 print_num(fw->counters.pcnt, format); 1173 print_num(fw->counters.bcnt, format); 1972 if (sscanf(pcnt, "%llu", &fw.counters [all...] |
/asus-wl-520gu-7.0.1.45/src/router/iptables/include/libiptc/ |
H A D | libip6tc.h | 50 struct ip6t_counters *counters, 96 /* Zeroes the counters in a chain. */ 116 struct ip6t_counters *counters, 123 /* read packet and byte counters for a specific rule */ 128 /* zero packet and byte counters for a specific rule */ 133 /* set packet and byte counters for a specific rule */ 136 struct ip6t_counters *counters,
|
H A D | libiptc.h | 105 /* Zeroes the counters in a chain. */ 125 struct ipt_counters *counters, 133 /* read packet and byte counters for a specific rule */ 138 /* zero packet and byte counters for a specific rule */ 143 /* set packet and byte counters for a specific rule */ 146 struct ipt_counters *counters,
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/net/wan/8253x/ |
H A D | ring.h | 39 struct counters struct
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter/ |
H A D | arp_tables.c | 273 ADD_COUNTER(e->counters, hdr_len, 1); 423 e->counters.pcnt = pos; 451 pos = e->counters.pcnt; 452 e->counters.pcnt = 0; 466 e->counters.pcnt = pos; 483 e->counters.pcnt = pos; 604 /* Clear counters and comefrom */ 605 e->counters = ((struct arpt_counters) { 0, 0 }); 740 /* Gets counters. */ 745 ADD_COUNTER(total[*i], e->counters 751 get_counters(const struct arpt_table_info *t, struct arpt_counters counters[]) argument 773 struct arpt_counters *counters; local 860 struct arpt_counters *counters; local [all...] |
H A D | ip_tables.c | 314 ADD_COUNTER(e->counters, ntohs(ip->tot_len), 1); 499 e->counters.pcnt = pos; 535 pos = e->counters.pcnt; 536 e->counters.pcnt = 0; 550 e->counters.pcnt = pos; 567 e->counters.pcnt = pos; 749 /* Clear counters and comefrom */ 750 e->counters = ((struct ipt_counters) { 0, 0 }); 900 /* Gets counters. */ 906 ADD_COUNTER(total[*i], e->counters 913 get_counters(const struct ipt_table_info *t, struct ipt_counters counters[]) argument 936 struct ipt_counters *counters; local 1042 struct ipt_counters *counters; local [all...] |
H A D | ipchains_core.c | 30 * Added packet and byte counters for policy matches. 117 * This means counters and backchains can get corrupted if no precautions 127 * For backchains and counters, we use an array, indexed by 130 * confident of uniqueness, we modify counters even though we only 131 * have a read lock (to read the counters, you need a write lock, 139 * The counters, however, can't. Trying to lock these means blocking 142 * made worse on 32-bit machines (counters are 64-bit). */ 213 __u64 pcnt, bcnt; /* Packet and byte counters */ 224 struct ip_counters counters[0]; /* Actually several of these */ member in struct:ip_fwkernel 231 struct ip_counters counters; member in struct:ip_reent [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter.noQoS/ |
H A D | arp_tables.c | 273 ADD_COUNTER(e->counters, hdr_len, 1); 423 e->counters.pcnt = pos; 451 pos = e->counters.pcnt; 452 e->counters.pcnt = 0; 466 e->counters.pcnt = pos; 483 e->counters.pcnt = pos; 604 /* Clear counters and comefrom */ 605 e->counters = ((struct arpt_counters) { 0, 0 }); 740 /* Gets counters. */ 745 ADD_COUNTER(total[*i], e->counters 751 get_counters(const struct arpt_table_info *t, struct arpt_counters counters[]) argument 773 struct arpt_counters *counters; local 860 struct arpt_counters *counters; local [all...] |
H A D | ip_tables.c | 314 ADD_COUNTER(e->counters, ntohs(ip->tot_len), 1); 499 e->counters.pcnt = pos; 535 pos = e->counters.pcnt; 536 e->counters.pcnt = 0; 550 e->counters.pcnt = pos; 567 e->counters.pcnt = pos; 749 /* Clear counters and comefrom */ 750 e->counters = ((struct ipt_counters) { 0, 0 }); 900 /* Gets counters. */ 906 ADD_COUNTER(total[*i], e->counters 913 get_counters(const struct ipt_table_info *t, struct ipt_counters counters[]) argument 936 struct ipt_counters *counters; local 1042 struct ipt_counters *counters; local [all...] |
H A D | ipchains_core.c | 30 * Added packet and byte counters for policy matches. 117 * This means counters and backchains can get corrupted if no precautions 127 * For backchains and counters, we use an array, indexed by 130 * confident of uniqueness, we modify counters even though we only 131 * have a read lock (to read the counters, you need a write lock, 139 * The counters, however, can't. Trying to lock these means blocking 142 * made worse on 32-bit machines (counters are 64-bit). */ 213 __u64 pcnt, bcnt; /* Packet and byte counters */ 224 struct ip_counters counters[0]; /* Actually several of these */ member in struct:ip_fwkernel 231 struct ip_counters counters; member in struct:ip_reent [all...] |
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/netfilter_arp/ |
H A D | arp_tables.h | 95 u_int64_t pcnt, bcnt; /* Packet and byte counters */ 131 /* Packet and byte counters. */ 132 struct arpt_counters counters; member in struct:arpt_entry 205 /* Number of counters (must be equal to current number of entries). */ 207 /* The old entries' counters. */ 208 struct arpt_counters *counters; member in struct:arpt_replace 222 /* The counters (actually `number' of these). */ 223 struct arpt_counters counters[0]; member in struct:arpt_counters_info
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/netfilter_arp/ |
H A D | arp_tables.h | 95 u_int64_t pcnt, bcnt; /* Packet and byte counters */ 131 /* Packet and byte counters. */ 132 struct arpt_counters counters; member in struct:arpt_entry 205 /* Number of counters (must be equal to current number of entries). */ 207 /* The old entries' counters. */ 208 struct arpt_counters *counters; member in struct:arpt_replace 222 /* The counters (actually `number' of these). */ 223 struct arpt_counters counters[0]; member in struct:arpt_counters_info
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv6/netfilter/ |
H A D | ip6_tables.c | 386 ADD_COUNTER(e->counters, ntohs(ipv6->payload_len) + IPV6_HDR_LEN, 1); 575 e->counters.pcnt = pos; 611 pos = e->counters.pcnt; 612 e->counters.pcnt = 0; 626 e->counters.pcnt = pos; 643 e->counters.pcnt = pos; 825 /* Clear counters and comefrom */ 826 e->counters = ((struct ip6t_counters) { 0, 0 }); 976 /* Gets counters. */ 982 ADD_COUNTER(total[*i], e->counters 989 get_counters(const struct ip6t_table_info *t, struct ip6t_counters counters[]) argument 1012 struct ip6t_counters *counters; local 1118 struct ip6t_counters *counters; local [all...] |
/asus-wl-520gu-7.0.1.45/src/router/iptables/libiptc/ |
H A D | libiptc.c | 597 STRUCT_COUNTERS *counters, 611 *counters = e->counters; 1132 /* Zeroes the counters in a chain. */ 1183 return &e->counters; 1227 STRUCT_COUNTERS *counters, 1255 memcpy(&e->counters, counters, sizeof(STRUCT_COUNTERS)); 1450 STRUCT_COUNTERS *counters, 1488 if (counters) { 596 TC_GET_POLICY(const char *chain, STRUCT_COUNTERS *counters, TC_HANDLE_T *handle) argument 1225 TC_SET_COUNTER(const IPT_CHAINLABEL chain, unsigned int rulenum, STRUCT_COUNTERS *counters, TC_HANDLE_T *handle) argument 1448 TC_SET_POLICY(const IPT_CHAINLABEL chain, const IPT_CHAINLABEL policy, STRUCT_COUNTERS *counters, TC_HANDLE_T *handle) argument [all...] |
H A D | libip4tc.c | 147 e->counters.pcnt, e->counters.bcnt);
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/netfilter_ipv4/ |
H A D | ip_tables.h | 102 u_int64_t pcnt, bcnt; /* Packet and byte counters */ 137 /* Packet and byte counters. */ 138 struct ipt_counters counters; member in struct:ipt_entry 252 /* Number of counters (must be equal to current number of entries). */ 254 /* The old entries' counters. */ 255 struct ipt_counters *counters; member in struct:ipt_replace 269 /* The counters (actually `number' of these). */ 270 struct ipt_counters counters[0]; member in struct:ipt_counters_info
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/netfilter_ipv6/ |
H A D | ip6_tables.h | 105 u_int64_t pcnt, bcnt; /* Packet and byte counters */ 142 /* Packet and byte counters. */ 143 struct ip6t_counters counters; member in struct:ip6t_entry 257 /* Number of counters (must be equal to current number of entries). */ 259 /* The old entries' counters. */ 260 struct ip6t_counters *counters; member in struct:ip6t_replace 274 /* The counters (actually `number' of these). */ 275 struct ip6t_counters counters[0]; member in struct:ip6t_counters_info
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/netfilter_ipv4/ |
H A D | ip_tables.h | 102 u_int64_t pcnt, bcnt; /* Packet and byte counters */ 137 /* Packet and byte counters. */ 138 struct ipt_counters counters; member in struct:ipt_entry 252 /* Number of counters (must be equal to current number of entries). */ 254 /* The old entries' counters. */ 255 struct ipt_counters *counters; member in struct:ipt_replace 269 /* The counters (actually `number' of these). */ 270 struct ipt_counters counters[0]; member in struct:ipt_counters_info
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/netfilter_ipv6/ |
H A D | ip6_tables.h | 105 u_int64_t pcnt, bcnt; /* Packet and byte counters */ 142 /* Packet and byte counters. */ 143 struct ip6t_counters counters; member in struct:ip6t_entry 257 /* Number of counters (must be equal to current number of entries). */ 259 /* The old entries' counters. */ 260 struct ip6t_counters *counters; member in struct:ip6t_replace 274 /* The counters (actually `number' of these). */ 275 struct ip6t_counters counters[0]; member in struct:ip6t_counters_info
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/drm/ |
H A D | drm_ioctl.h | 218 for (i = 0; i < dev->counters; i++) { 228 stats.count = dev->counters;
|