X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=ipstruct.h;h=797fb7bb72bca3bcd2f0f64157c1ffc08d9f1c11;hb=bb5e73853e892f8bce70e03344a81b192c2b84ff;hp=ad5bf38fc7318bd80e9be31aa4dbcaff0818ac52;hpb=cdfd88eb2cfba828e5bfc3f77eba37b3cba286ce;p=svn%2FPrometheus-QoS%2F.git diff --git a/ipstruct.h b/ipstruct.h index ad5bf38..797fb7b 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; @@ -24,6 +25,7 @@ struct IP struct Keyword *keyword; int v6; int mask; + struct IP *uplink; list(IP); }; @@ -54,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 */