/* Credit: CZFree.Net,Martin Devera,Netdave,Aquarius,Gandalf */\r
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */\r
\r
-/* Modified: xChaos, 20080422\r
+/* Modified: xChaos, 20080504\r
ludva, 20080415\r
\r
Prometheus QoS is free software; you can redistribute it and/or\r
\r
const char *version = "0.7.9-c"; \r
\r
-/* Version numbers: 0.7.9 will be last development ("beta"), 0.8.0 first stable */\r
+/* Version numbers: 0.7.9 is development releases ("beta"), 0.8.0 will be "stable" */\r
/* Debian(RPM) package versions/patchlevels: 0.7.9-2, 0.8.0-1, 0.8.0-2, etc. */\r
/* C source code development versions ("beta"): 0.7.9-a, 0.8.1-b, etc. */\r
/* C source code release versions: 0.8.0, 0.8.2, 0.8.4, etc. */\r
-r just reload configuration (...and keep data transfer statistics)\n\\r
*/\r
}\r
-\r
/* === Configuraration file values defaults - stored in global variables ==== */\r
\r
-int filter_type=1; /*1 mark, 2 classify*/\r
-char *mark="MARK";\r
-char *mark_iptables="MARK --set-mark ";\r
-int dry_run=0; /* preview - use puts() instead of system() */\r
-char *iptablespreamble="*mangle\n:PREROUTING ACCEPT [0:0]\n:POSTROUTING ACCEPT [0:0]\n:INPUT ACCEPT [0:0]\n:OUTPUT ACCEPT [0:0]\n:FORWARD ACCEPT [0:0]";\r
-FILE *iptables_file=NULL;\r
-int enable_credit=1; /* enable credit file */\r
-int use_credit=0; /* use credit file (if enabled)*/\r
-char *title="Hall of Fame - Greatest Suckers"; /* hall of fame title */\r
-int hall_of_fame=1; /* enable hall of fame */\r
-char *lan="eth0"; /* LAN interface */\r
-char *lan_medium="100Mbit"; /* 10Mbit/100Mbit ethernet */\r
-char *wan="eth1"; /* WAN/ISP interface */\r
-char *wan_medium="100Mbit"; /* 10Mbit/100Mbit ethernet */\r
-char *qos_leaf="sfq perturb 5"; /* leaf discipline */\r
-char *qos_free_zone=NULL; /* QoS free zone */\r
-int qos_proxy=1; /* include proxy port to QoS */\r
-int include_upload=1; /* upload+download=total traffic */\r
-char *proxy_ip="192.168.1.1/32"; /* our IP with proxy port */\r
-int proxy_port=3128; /* proxy port number */\r
-long long int line=1024; /* WAN/ISP download in kbps */\r
-long long int up=1024; /* WAN/ISP upload in kbps */\r
-int free_min=32; /* minimum guaranted bandwidth for all undefined hosts */\r
-int free_max=64; /* maximum allowed bandwidth for all undefined hosts */\r
-int qos_free_delay=0; /* seconds to sleep before applying new QoS rules */\r
-int digital_divide=2; /* controls digital divide weirdness ratio, 1...3 */ \r
-int max_nesting=3; /* maximum nesting of HTB clases, built-in maximum seems to be 4 */\r
-int htb_r2q=1; \r
-int burst=8; /* HTB burst (in kbits) */\r
-int burst_main=64;\r
-int burst_group=32;\r
-int magic_priorities=8; /* number of priority levels (soft shaping) */\r
-int magic_treshold=8; /* reduce ceil by X*magic_treshhold kbps (hard shaping) */\r
-int keywordcount=0;\r
-\r
+int filter_type = 1; /*1 mark, 2 classify*/\r
+char *mark = "MARK";\r
+char *mark_iptables = "MARK --set-mark ";\r
+int dry_run = 0; /* preview - use puts() instead of system() */\r
+char *iptablespreamble = "*mangle\n:PREROUTING ACCEPT [0:0]\n:POSTROUTING ACCEPT [0:0]\n:INPUT ACCEPT [0:0]\n:OUTPUT ACCEPT [0:0]\n:FORWARD ACCEPT [0:0]";\r
+FILE *iptables_file = NULL;\r
+int enable_credit = 1; /* enable credit file */\r
+int use_credit = 0; /* use credit file (if enabled)*/\r
+char *title = "Hall of Fame - Greatest Suckers"; /* hall of fame title */\r
+int hall_of_fame = 1; /* enable hall of fame */\r
+char *lan = "eth0"; /* LAN interface */\r
+char *lan_medium = "100Mbit"; /* 10Mbit/100Mbit ethernet */\r
+char *wan = "eth1"; /* WAN/ISP interface */\r
+char *wan_medium = "100Mbit"; /* 10Mbit/100Mbit ethernet */\r
+char *qos_leaf = "sfq perturb 5"; /* leaf discipline */\r
+char *qos_free_zone = NULL; /* QoS free zone */\r
+int qos_proxy = 1; /* include proxy port to QoS */\r
+int include_upload = 1; /* upload+download=total traffic */\r
+char *proxy_ip = "192.168.1.1/32"; /* our IP with proxy port */\r
+int proxy_port = 3128; /* proxy port number */\r
+long long int line = 1024; /* WAN/ISP download in kbps */\r
+long long int up = 1024; /* WAN/ISP upload in kbps */\r
+int free_min = 32; /* minimum guaranted bandwidth for all undefined hosts */\r
+int free_max = 64; /* maximum allowed bandwidth for all undefined hosts */\r
+int qos_free_delay = 0; /* seconds to sleep before applying new QoS rules */\r
+int digital_divide = 2; /* controls digital divide weirdness ratio, 1...3 */ \r
+int max_nesting = 3; /* maximum nesting of HTB clases, built-in maximum seems to be 4 */\r
+int htb_r2q = 1; \r
+int burst = 8; /* HTB burst (in kbits) */\r
+int burst_main = 64;\r
+int burst_group = 32;\r
+int magic_priorities = 8; /* number of priority levels (soft shaping) */\r
+int magic_treshold = 8; /* reduce ceil by X*magic_treshhold kbps (hard shaping) */\r
+int keywordcount = 0;\r
/* not yet implemented:\r
- int fixed_packets=0; maximum number of pps per IP address (not class!) \r
- int packet_limit=5; maximum number of pps to htn CEIL, not rate !!! \r
+int fixed_packets = 0; maximum number of pps per IP address (not class!) \r
+int packet_limit = 5; maximum number of pps to htn CEIL, not rate !!! \r
*/\r
-FILE *log_file=NULL;\r
-\r
-char *kwd="via-prometheus"; /* /etc/hosts comment, eg. #qos-64-128 */\r
+FILE *log_file = NULL;\r
+char *kwd = "via-prometheus"; /* /etc/hosts comment, eg. #qos-64-128 */\r
\r
const int idxtable_treshold1=24; /* this is no longer configurable */\r
const int idxtable_treshold2=12; /* this is no longer configurable */\r
printf("\n\\r
Prometheus QoS - \"fair-per-IP\" Quality of Service setup utility.\n\\r
Version %s - Copyright (C)2005-2008 Michael Polak (xChaos)\n\\r
-iptables-restore & burst tunning & classify modification 0.7d by Ludva\n\\r
+iptables-restore & burst tunning & classify modification by Ludva\n\\r
Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version);\r
\r
/*----- Boring... we have to check command line options first: ----*/\r