X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=ipstruct.h;h=c7843f6349bf4bf9e10dd0ee92eddb866f293db3;hb=9f552e96b7c3ed1b5af6578252c0154491132a10;hp=542cb0aa7c7a16ecca6c841481d971565b7c5fe0;hpb=bf59a20b46290db34e1761926a39ee68164d636b;p=svn%2FPrometheus-QoS%2F.git diff --git a/ipstruct.h b/ipstruct.h index 542cb0a..c7843f6 100644 --- a/ipstruct.h +++ b/ipstruct.h @@ -72,5 +72,26 @@ struct Macro list(Macro); }; +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 */