X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=ipstruct.h;h=d8427deb8efa5815341858433eff38e47f1b7e60;hb=73cf6e9d2ba1876280dbc8e71ae41e5562cbfc02;hp=ea797499a7d2328e0b97cf116a3973c73c1d73a9;hpb=0b9c3c198771800cc6c5fbacfc0272549626bcfd;p=svn%2FPrometheus-QoS%2F.git diff --git a/ipstruct.h b/ipstruct.h index ea79749..d8427de 100644 --- a/ipstruct.h +++ b/ipstruct.h @@ -1,3 +1,5 @@ +/* Modified by: xChaos, 20131029 */ + struct IP { char *addr; @@ -11,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; @@ -21,6 +24,8 @@ struct IP unsigned long pktsdown; struct Keyword *keyword; int v6; + int mask; + struct IP *uplink; list(IP); }; @@ -51,9 +56,9 @@ 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); }; -void TheIP(char *ipaddr); +void TheIP(char *ipaddr, int is_network); /* function implemented in parsehosts.c */