X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=prometheus.c;h=0c0d93bbb7d85d6f81f6490f24ace26d95a62010;hb=dec30356f770ebe6a6f1648041c4285bf3e5bff3;hp=bd1a8d03737309718e2fcf4426919041244f68af;hpb=208112af094ee6be512e5f4d60ca6051f0908cff;p=svn%2FPrometheus-QoS%2F.git
diff --git a/prometheus.c b/prometheus.c
index bd1a8d0..0c0d93b 100644
--- a/prometheus.c
+++ b/prometheus.c
@@ -40,7 +40,7 @@ const char *version = "0.8.3";
/* C source code development versions ("beta"): 0.7.9-a, 0.8.1-b, etc. */
/* C source code release versions: 0.8.0, 0.8.2, 0.8.4, etc. */
-const char *stats_html_signature = "Statistics generated by Prometheus QoS version %s
GPL+Copyright(C)2005-2008 Michael Polak, Arachne Labs\n";
+const char *stats_html_signature = "Statistics generated by Prometheus QoS version %s
GPL+Copyright(C)2005-2011 Michael Polak, Arachne Labs\n";
/* ======= All path names are defined here (for RPM patch) ======= */
@@ -185,7 +185,7 @@ struct Keyword
int asymetry_ratio; /* ratio for ADSL-like upload */
int asymetry_fixed; /* fixed treshold for ADSL-like upload */
int data_limit; /* hard shaping: apply magic_treshold if max*data_limit MB exceeded */
- int data_prio; /* soft shaping (qos): reduce HTB prio if max*data_prio MB exceeded */
+ int data_prio; /* soft shaping (qos): reduce HTB prio if max*data_prio MB exceeded */
long fixed_limit; /* fixed data limit for setting lower HTB ceil */
long fixed_prio; /* fixed data lmit for setting lower HTB prio */
int reserve_min; /* bonus for nominal HTB rate bandwidth (in kbps) */
@@ -205,15 +205,23 @@ struct Keyword
void TheIP(void)
{
create(ip,IP);
- ip->name="";
- ip->addr="";
- ip->sharing=NULL;
- ip->prio=highest_priority+1;
- ip->fixedprio=0;
- ip->mark=ip->min=ip->max=ip->desired=ip->credit=0;
- ip->upload=ip->proxy=ip->direct=ip->traffic=0;
- ip->pktsup=ip->pktsdown=0;
- ip->keyword=keywords;
+ ip->name = "";
+ ip->addr = "";
+ ip->sharing = NULL;
+ ip->prio = highest_priority+1;
+ ip->fixedprio = 0;
+ ip->mark = \
+ ip->min = \
+ ip->max = \
+ ip->desired = \
+ ip->credit = \
+ ip->upload = \
+ ip->proxy = \
+ ip->direct = \
+ ip->traffic = \
+ ip->pktsup = \
+ ip->pktsdown = 0;
+ ip->keyword = keywords;
push(ip,ips);
}