X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=ipstruct.h;h=f8d09e5501fabc6521e20510e698ab9e96fcdee7;hb=3430e838dc632523c571a995d75ace44de1b06b6;hp=d4383b32fc4192e98ce6d18f01dd2976e966b680;hpb=dccb32271f7c04bfcfa0fd44ffff02a0f1b628de;p=svn%2FPrometheus-QoS%2F.git diff --git a/ipstruct.h b/ipstruct.h index d4383b3..f8d09e5 100644 --- a/ipstruct.h +++ b/ipstruct.h @@ -10,12 +10,15 @@ struct IP int max; int mark; int prio; + int aggregated; int fixedprio; int group; int lmsid; int pps_limit; unsigned long long direct; unsigned long long proxy; + unsigned long long traffic_down; + unsigned long long traffic_up; unsigned long long upload; unsigned long long traffic; unsigned long long credit; @@ -69,5 +72,40 @@ struct Macro list(Macro); }; +struct QosFreeInterface +{ + char *name; + int _eoln; + list(QosFreeInterface); +}; + +struct Textfile +{ + char *str; + int _eoln; + list(Textfile); +}; + +struct Index +{ + char *addr; + char *id; + struct Index *parent; + int bitmask; + int children; + int ipv6; + list(Index); +}; + +struct Interface +{ + char *name; + long long speed; + int is_upstream; + char *chain; + char *idxprefix; + list(Interface); +}; + void TheIP(char *ipaddr, int is_network); /* function implemented in parsehosts.c */