X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=ipstruct.h;h=6f0e5694dc2aab8b15174b4c7ad8b59992964a45;hb=64b2d1255780905c78973df33145c93ee5613c9c;hp=4f1d9aac8fbb362fceb403dc3761ea5bc9f743ef;hpb=9694a8ec9258e894c4001b076a6c7f6c0e5a46f4;p=svn%2FPrometheus-QoS%2F.git diff --git a/ipstruct.h b/ipstruct.h index 4f1d9aa..6f0e569 100644 --- a/ipstruct.h +++ b/ipstruct.h @@ -13,6 +13,7 @@ struct IP int fixedprio; int group; int lmsid; + int pps_limit; unsigned long long direct; unsigned long long proxy; unsigned long long upload; @@ -41,7 +42,7 @@ struct Keyword { char *key; - int asymetry_ratio; /* ratio for ADSL-like upload */ + float asymetry_ratio; /* ratio for ADSL-like upload */ int asymetry_fixed; /* fixed treshold for ADSL-like upload */ int data_limit; /* hard shaping: apply magic_treshold if max*data_limit MB exceeded */ int data_prio; /* soft shaping (qos): reduce HTB prio if max*data_prio MB exceeded */ @@ -55,9 +56,16 @@ struct Keyword char *html_color; int ip_count; char *leaf_discipline; - + int allowed_avgmtu; /* this is for calculating packet limits, 0 = no limit*/ list(Keyword); }; +struct Macro +{ + char *rewrite_from; + char *rewrite_to; + list(Macro); +}; + void TheIP(char *ipaddr, int is_network); /* function implemented in parsehosts.c */