preliminary ipv6 support - not tested
[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
0b9c3c19 23 int v6;\r
1c9cae56 24 list(IP);\r
25};\r
26\r
27struct Group\r
28{\r
29 int min;\r
30 int count;\r
31 int desired;\r
32 int id;\r
33 list(Group);\r
34};\r
35\r
36struct Keyword\r
37{\r
38 char *key;\r
39 \r
40 int asymetry_ratio; /* ratio for ADSL-like upload */\r
41 int asymetry_fixed; /* fixed treshold for ADSL-like upload */\r
42 int data_limit; /* hard shaping: apply magic_treshold if max*data_limit MB exceeded */\r
43 int data_prio; /* soft shaping (qos): reduce HTB prio if max*data_prio MB exceeded */\r
44 long fixed_limit; /* fixed data limit for setting lower HTB ceil */\r
45 long fixed_prio; /* fixed data lmit for setting lower HTB prio */\r
46 int reserve_min; /* bonus for nominal HTB rate bandwidth (in kbps) */\r
47 int reserve_max; /* malus for nominal HTB ceil (in kbps) */\r
48// int divide_max; /* relative malus: new_ceil=rate+(old_ceil-rate)/divide_max */\r
49// int htb_ceil_bonus_divide; /* relative bonus: new_ceil=old_ceil+old_ceil/htb_ceil_bonus_divide */\r
50 int default_prio; /* default HTB priority for this keyword */\r
51 char *html_color;\r
52 int ip_count;\r
53 char *leaf_discipline;\r
54 \r
55 list(Keyword);\r
56};\r
f19d3cd0 57\r
58void TheIP(char *ipaddr);\r
59/* function implemented in parsehosts.c */\r
This page took 0.194885 seconds and 4 git commands to generate.