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