Major rewrite of leading comments
[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
e48d46c9 19 unsigned long long realquota;\r
1c9cae56 20 unsigned long pktsup;\r
21 unsigned long pktsdown;\r
22 struct Keyword *keyword;\r
23 list(IP);\r
24};\r
25\r
26struct Group\r
27{\r
28 int min;\r
29 int count;\r
30 int desired;\r
31 int id;\r
32 list(Group);\r
33};\r
34\r
35struct Keyword\r
36{\r
37 char *key;\r
38 \r
39 int asymetry_ratio; /* ratio for ADSL-like upload */\r
40 int asymetry_fixed; /* fixed treshold for ADSL-like upload */\r
41 int data_limit; /* hard shaping: apply magic_treshold if max*data_limit MB exceeded */\r
42 int data_prio; /* soft shaping (qos): reduce HTB prio if max*data_prio MB exceeded */\r
43 long fixed_limit; /* fixed data limit for setting lower HTB ceil */\r
44 long fixed_prio; /* fixed data lmit for setting lower HTB prio */\r
45 int reserve_min; /* bonus for nominal HTB rate bandwidth (in kbps) */\r
46 int reserve_max; /* malus for nominal HTB ceil (in kbps) */\r
47// int divide_max; /* relative malus: new_ceil=rate+(old_ceil-rate)/divide_max */\r
48// int htb_ceil_bonus_divide; /* relative bonus: new_ceil=old_ceil+old_ceil/htb_ceil_bonus_divide */\r
49 int default_prio; /* default HTB priority for this keyword */\r
50 char *html_color;\r
51 int ip_count;\r
52 char *leaf_discipline;\r
53 \r
54 list(Keyword);\r
55};\r
This page took 0.127183 seconds and 4 git commands to generate.