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