db3025bc |
1 | --- prometheus.c 2008-01-06 11:54:28.000000000 +0100 |
2 | +++ prometheus-rh.c 2008-01-06 11:54:09.000000000 +0100 |
3 | @@ -57,17 +57,17 @@ |
4 | char *mark="MARK";\r |
5 | char *mark_iptables="MARK --set-mark ";\r |
6 | int dry_run=0; /* preview - use puts() instead of system() */\r |
7 | -char *config="/etc/prometheus.conf"; /* main configuration file */\r |
8 | -char *hosts="/etc/hosts"; /* line bandwidth definition file */\r |
9 | +char *config="/etc/prometheus/prometheus.conf"; /* main configuration file */\r |
10 | +char *hosts="/etc/prometheus/hosts"; /* line bandwidth definition file */\r |
11 | char *tc="/sbin/tc"; /* requires tc with HTB support */\r |
12 | -char *iptables="/usr/sbin/iptables"; /* requires iptables utility */\r |
13 | -char *iptablessave="/usr/sbin/iptables-save"; /* new */\r |
14 | -char *iptablesrestore="/usr/sbin/iptables-restore"; /* new */\r |
15 | +char *iptables="/sbin/iptables"; /* requires iptables utility */\r |
16 | +char *iptablessave="/sbin/iptables-save"; /* new */\r |
17 | +char *iptablesrestore="/sbin/iptables-restore"; /* new */\r |
18 | char *iptablesfile="/var/spool/prometheus.iptables"; /* new; file for iptables-restore*/\r |
19 | 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 |
20 | FILE *iptables_file=NULL;\r |
21 | -char *html="/var/www/traffic.html"; /* hall of fame filename */\r |
22 | -char *preview="/var/www/preview.html"; /* hall of fame preview */\r |
23 | +char *html="/var/www/html/traffic.html"; /* hall of fame filename */\r |
24 | +char *preview="/var/www/html/preview.html"; /* hall of fame preview */\r |
25 | char *cmdlog="/var/log/prometheus"; /* command log filename */\r |
26 | char *credit="/var/run/prometheus.credit"; /* credit log file */\r |
27 | int enable_credit=1; /* enable credit file */\r |
28 | @@ -93,7 +93,7 @@ |
29 | int qos_free_delay=0; /* seconds to sleep before applying new QoS rules */\r |
30 | int digital_divide=2; /* controls digital divide weirdness ratio, 1...3 */ \r |
31 | int max_nesting=3; /* maximum nesting of HTB clases, built-in maximum seems to be 4 */\r |
32 | -int htb_r2q=1; \r |
33 | +int htb_r2q=1;\r |
34 | int burst=8; /* HTB burst (in kbits) */\r |
35 | int burst_main=64;\r |
36 | int burst_group=32;\r |