parsehosts.c = first step to independent hosts parser
[svn/Prometheus-QoS/.git] / ipstruct.h
diff --git a/ipstruct.h b/ipstruct.h
new file mode 100644 (file)
index 0000000..2410047
--- /dev/null
@@ -0,0 +1,54 @@
+struct IP\r
+{\r
+ char *addr;\r
+ char *name;\r
+ char *sharing;\r
+ int min;\r
+ int desired;\r
+ int max;\r
+ int mark;\r
+ int prio;\r
+ int fixedprio;\r
+ int group;\r
+ int lmsid;\r
+ unsigned long long direct;\r
+ unsigned long long proxy;\r
+ unsigned long long upload;\r
+ unsigned long long traffic;\r
+ unsigned long long credit;\r
+ unsigned long pktsup;\r
+ unsigned long pktsdown;\r
+ struct Keyword *keyword;\r
+ list(IP);\r
+};\r
+\r
+struct Group\r
+{\r
+ int min;\r
+ int count;\r
+ int desired;\r
+ int id;\r
+ list(Group);\r
+};\r
+\r
+struct Keyword\r
+{\r
+ char *key;\r
\r
+ int asymetry_ratio;        /* ratio for ADSL-like upload */\r
+ int asymetry_fixed;        /* fixed treshold for ADSL-like upload */\r
+ int data_limit;            /* hard shaping: apply magic_treshold if max*data_limit MB exceeded */\r
+ int data_prio;             /* soft shaping (qos): reduce HTB prio if max*data_prio MB exceeded */\r
+ long fixed_limit;          /* fixed data limit for setting lower HTB ceil */\r
+ long fixed_prio;           /* fixed data lmit for setting lower HTB prio */\r
+ int reserve_min;          /* bonus for nominal HTB rate bandwidth (in kbps) */\r
+ int reserve_max;          /* malus for nominal HTB ceil (in kbps) */\r
+// int divide_max;         /* relative malus: new_ceil=rate+(old_ceil-rate)/divide_max */\r
+// int htb_ceil_bonus_divide; /* relative bonus: new_ceil=old_ceil+old_ceil/htb_ceil_bonus_divide */\r
+ int default_prio;         /* default HTB priority for this keyword */\r
+ char *html_color;\r
+ int ip_count;\r
+ char *leaf_discipline;\r
\r
+ list(Keyword);\r
+};\r
This page took 0.141886 seconds and 4 git commands to generate.