version 1.0.0.-a - significat iptables parsing speed improvement
[svn/Prometheus-QoS/.git] / ipstruct.h
index 542cb0aa7c7a16ecca6c841481d971565b7c5fe0..3b807474df260cd6cd79edaec83591d959718c00 100644 (file)
@@ -1,4 +1,6 @@
-/* Modified by: xChaos, 20131029 */\r
+/* Modified by: xChaos, 20200104 */\r
+\r
+#define MONITORINGTRHU_CTU\r
 \r
 struct IP\r
 {\r
@@ -26,6 +28,10 @@ struct IP
  unsigned long pktsup;\r
  unsigned long pktsdown;\r
  struct Keyword *keyword;\r
+#ifdef MONITORINGTRHU_CTU\r
+ char *technology_str;\r
+ char *ruian_id_str;\r
+#endif\r
  int v6;\r
  int mask;\r
  struct IP *uplink;\r
@@ -72,5 +78,43 @@ struct Macro
  list(Macro);\r
 };\r
 \r
+struct QosFreeInterface\r
+{\r
+ char *name;\r
+ int _eoln;\r
+ list(QosFreeInterface);\r
+};\r
+\r
+struct Index\r
+{\r
+ char *addr;\r
+ char *id;\r
+ struct Index *parent;\r
+ int bitmask;\r
+ int children;\r
+ int ipv6;\r
+ list(Index);\r
+};\r
+\r
+struct Interface \r
+{\r
+ char *name;\r
+ long long speed;\r
+ int is_upstream;\r
+ char *chain;\r
+ char *idxprefix;\r
+ list(Interface);\r
+};\r
+\r
 void TheIP(char *ipaddr, int is_network);\r
 /* function implemented in parsehosts.c */\r
+\r
+#ifdef MONITORINGTRHU_CTU\r
+struct Technology\r
+{\r
+ char *filename;\r
+ list(Technology);\r
+};\r
+\r
+extern struct Technology *technologies, *technology;\r
+#endif\r
This page took 0.097574 seconds and 4 git commands to generate.