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