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