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