Home
last modified time | relevance | path

Searched refs:bcnt (Results 1 – 14 of 14) sorted by relevance

/external/iptables/iptables/
Dip6tables-restore.c85 unsigned long long pcnt, bcnt; in parse_counters() local
88 ret = sscanf(string, "[%llu:%llu]", &pcnt, &bcnt); in parse_counters()
90 ctr->bcnt = bcnt; in parse_counters()
401 char *bcnt = NULL; in ip6tables_restore_main() local
421 bcnt = strtok(NULL, "]"); in ip6tables_restore_main()
422 if (!bcnt) in ip6tables_restore_main()
438 if (counters && pcnt && bcnt) { in ip6tables_restore_main()
441 add_argv((char *) bcnt); in ip6tables_restore_main()
Diptables-restore.c84 unsigned long long pcnt, bcnt; in parse_counters() local
87 ret = sscanf(string, "[%llu:%llu]", &pcnt, &bcnt); in parse_counters()
89 ctr->bcnt = bcnt; in parse_counters()
401 char *bcnt = NULL; in iptables_restore_main() local
421 bcnt = strtok(NULL, "]"); in iptables_restore_main()
422 if (!bcnt) in iptables_restore_main()
438 if (counters && pcnt && bcnt) { in iptables_restore_main()
441 add_argv((char *) bcnt); in iptables_restore_main()
Diptables-xml.c61 __u64 *pcnt, *bcnt; in parse_counters() local
65 bcnt = &ctr->bcnt; in parse_counters()
69 (unsigned long long *)bcnt) == 2); in parse_counters()
248 xmlAttrI("byte-count", (unsigned long long) ctr->bcnt); in openChain()
576 do_rule(char *pcnt, char *bcnt, int argc, char *argv[], int argvattr[]) in do_rule() argument
598 if (bcnt) in do_rule()
599 xmlAttrS("byte-count", bcnt); in do_rule()
736 char *bcnt = NULL; in iptables_xml_main() local
762 bcnt = strtok(NULL, "]"); in iptables_xml_main()
763 if (!bcnt) in iptables_xml_main()
[all …]
Dip6tables.c445 xtables_print_num(counters.bcnt, (format|FMT_NOTABLE)); in print_header()
529 xtables_print_num(fw->counters.bcnt, format); in print_firewall()
1053 …printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule6()
1093 …rintf(" -c %llu %llu", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule6()
1155 printf(" -c %llu %llu", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in list_rules()
1304 const char *pcnt = NULL, *bcnt = NULL; in do_command6() local
1632 bcnt = strchr(pcnt + 1, ','); in do_command6()
1633 if (bcnt) in do_command6()
1634 bcnt++; in do_command6()
1635 if (!bcnt && optind < argc && argv[optind][0] != '-' in do_command6()
[all …]
Diptables.c430 xtables_print_num(counters.bcnt, (format|FMT_NOTABLE)); in print_header()
516 xtables_print_num(fw->counters.bcnt, format); in print_firewall()
1053 …printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule4()
1084 …rintf(" -c %llu %llu", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule4()
1146 printf(" -c %llu %llu", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in list_rules()
1300 const char *pcnt = NULL, *bcnt = NULL; in do_command4() local
1626 bcnt = strchr(pcnt + 1, ','); in do_command4()
1627 if (bcnt) in do_command4()
1628 bcnt++; in do_command4()
1629 if (!bcnt && optind < argc && argv[optind][0] != '-' in do_command4()
[all …]
Diptables-save.c93 printf("[%llu:%llu]\n", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in do_output()
Dip6tables-save.c95 printf("[%llu:%llu]\n", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in do_output()
/external/iproute2/include/linux/netfilter/
Dx_tables.h106 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
107 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
110 __u64 pcnt, bcnt; /* Packet and byte counters */ member
/external/iptables/include/linux/netfilter/
Dx_tables.h106 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
107 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
110 __u64 pcnt, bcnt; /* Packet and byte counters */ member
/external/kernel-headers/original/uapi/linux/netfilter/
Dx_tables.h106 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
107 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
110 __u64 pcnt, bcnt; /* Packet and byte counters */ member
/external/kernel-headers/original/uapi/linux/netfilter_bridge/
Debtables.h37 uint64_t bcnt; member
/external/iptables/libiptc/
Dlibip6tc.c179 (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in dump_entry()
Dlibiptc.c2470 answer->bcnt = a->bcnt - b->bcnt; in subtract_counters()
Dlibip4tc.c145 (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in dump_entry()