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