X-Git-Url: https://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=prometheus.c;h=48384a6a16fa639279e85ef70a0e50f51ce06364;hp=62ebbc8b3e2fa8eb94eeea1684096f9f0905d668;hb=d7357b63c9942c72481993bdb9632861c1d83a55;hpb=0b9c3c198771800cc6c5fbacfc0272549626bcfd diff --git a/prometheus.c b/prometheus.c index 62ebbc8..48384a6 100644 --- a/prometheus.c +++ b/prometheus.c @@ -137,7 +137,7 @@ struct Keyword *keyword, *defaultkeyword=NULL, *keywords=NULL; void help(void); /* implemented in help.c */ -void get_traffic_statistics(const char *whichiptables); +void get_traffic_statistics(const char *whichiptables, int ipv6); /* implemented in parseiptables.c */ void parse_ip_log(int argc, char **argv); @@ -537,13 +537,13 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); /*-----------------------------------------------------------------*/ puts("Parsing iptables verbose output ..."); /*-----------------------------------------------------------------*/ - get_traffic_statistics(iptables); + get_traffic_statistics(iptables, FALSE); if(ip6prefix) { /*-----------------------------------------------------------------*/ puts("Parsing ip6tables verbose output ..."); /*-----------------------------------------------------------------*/ - get_traffic_statistics(ip6tables); + get_traffic_statistics(ip6tables, TRUE); } }