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