iptables --burst-limit added + some preliminary packet statistics in html output...
[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
c38473c1 16 int pps_limit;\r
1c9cae56 17 unsigned long long direct;\r
18 unsigned long long proxy;\r
19 unsigned long long upload;\r
20 unsigned long long traffic;\r
21 unsigned long long credit;\r
e48d46c9 22 unsigned long long realquota;\r
1c9cae56 23 unsigned long pktsup;\r
24 unsigned long pktsdown;\r
25 struct Keyword *keyword;\r
0b9c3c19 26 int v6;\r
af37be1d 27 int mask;\r
9694a8ec 28 struct IP *uplink;\r
1c9cae56 29 list(IP);\r
30};\r
31\r
32struct Group\r
33{\r
34 int min;\r
35 int count;\r
36 int desired;\r
37 int id;\r
38 list(Group);\r
39};\r
40\r
41struct Keyword\r
42{\r
43 char *key;\r
44 \r
45 int asymetry_ratio; /* ratio for ADSL-like upload */\r
46 int asymetry_fixed; /* fixed treshold for ADSL-like upload */\r
47 int data_limit; /* hard shaping: apply magic_treshold if max*data_limit MB exceeded */\r
48 int data_prio; /* soft shaping (qos): reduce HTB prio if max*data_prio MB exceeded */\r
49 long fixed_limit; /* fixed data limit for setting lower HTB ceil */\r
50 long fixed_prio; /* fixed data lmit for setting lower HTB prio */\r
51 int reserve_min; /* bonus for nominal HTB rate bandwidth (in kbps) */\r
52 int reserve_max; /* malus for nominal HTB ceil (in kbps) */\r
53// int divide_max; /* relative malus: new_ceil=rate+(old_ceil-rate)/divide_max */\r
54// int htb_ceil_bonus_divide; /* relative bonus: new_ceil=old_ceil+old_ceil/htb_ceil_bonus_divide */\r
55 int default_prio; /* default HTB priority for this keyword */\r
56 char *html_color;\r
57 int ip_count;\r
58 char *leaf_discipline;\r
59 \r
60 list(Keyword);\r
61};\r
f19d3cd0 62\r
af37be1d 63void TheIP(char *ipaddr, int is_network);\r
f19d3cd0 64/* function implemented in parsehosts.c */\r
This page took 0.170173 seconds and 4 git commands to generate.