parsehosts.c = first step to independent hosts parser
[svn/Prometheus-QoS/.git] / ipstruct.h
CommitLineData
1c9cae56 1struct IP\r
2{\r
3 char *addr;\r
4 char *name;\r
5 char *sharing;\r
6 int min;\r
7 int desired;\r
8 int max;\r
9 int mark;\r
10 int prio;\r
11 int fixedprio;\r
12 int group;\r
13 int lmsid;\r
14 unsigned long long direct;\r
15 unsigned long long proxy;\r
16 unsigned long long upload;\r
17 unsigned long long traffic;\r
18 unsigned long long credit;\r
19 unsigned long pktsup;\r
20 unsigned long pktsdown;\r
21 struct Keyword *keyword;\r
22 list(IP);\r
23};\r
24\r
25struct Group\r
26{\r
27 int min;\r
28 int count;\r
29 int desired;\r
30 int id;\r
31 list(Group);\r
32};\r
33\r
34struct Keyword\r
35{\r
36 char *key;\r
37 \r
38 int asymetry_ratio; /* ratio for ADSL-like upload */\r
39 int asymetry_fixed; /* fixed treshold for ADSL-like upload */\r
40 int data_limit; /* hard shaping: apply magic_treshold if max*data_limit MB exceeded */\r
41 int data_prio; /* soft shaping (qos): reduce HTB prio if max*data_prio MB exceeded */\r
42 long fixed_limit; /* fixed data limit for setting lower HTB ceil */\r
43 long fixed_prio; /* fixed data lmit for setting lower HTB prio */\r
44 int reserve_min; /* bonus for nominal HTB rate bandwidth (in kbps) */\r
45 int reserve_max; /* malus for nominal HTB ceil (in kbps) */\r
46// int divide_max; /* relative malus: new_ceil=rate+(old_ceil-rate)/divide_max */\r
47// int htb_ceil_bonus_divide; /* relative bonus: new_ceil=old_ceil+old_ceil/htb_ceil_bonus_divide */\r
48 int default_prio; /* default HTB priority for this keyword */\r
49 char *html_color;\r
50 int ip_count;\r
51 char *leaf_discipline;\r
52 \r
53 list(Keyword);\r
54};\r
This page took 0.121694 seconds and 4 git commands to generate.