+ parse(macrosfile)\r
+ {\r
+ ptr = parse_datafile_line(_);\r
+ if(ptr)\r
+ {\r
+ create(macro, Macro);\r
+ macro->rewrite_from = _;\r
+ macro->rewrite_to = ptr;\r
+ push(macro, macros);\r
+ printf("%s -> %s\n", macro->rewrite_from, macro->rewrite_to);\r
+ }\r
+ }\r
+ done; /* ugly macro end */\r
+\r
+ /*-----------------------------------------------------------------*/\r
+ printf("Parsing class defintion file %s ...\n", hosts);\r
+ /*-----------------------------------------------------------------*/\r
+ parse_hosts(hosts);\r
+/*\r
+ //this was pretty dumb idea anyway...\r
+ if(just_networks)\r
+ {\r
+ analyse_topology("/usr/sbin/traceroute -n -m 10 -w 2 %s.%d");\r
+ exit(-1); \r
+ }\r
+*/\r
+\r
+ if(mix_new_hosts)\r
+ {\r
+ char *new_filename;\r
+ /*-----------------------------------------------------------------*/\r
+ printf("Loading log of previously executed commands %s ...\n", cmdlog);\r
+ /*-----------------------------------------------------------------*/\r
+ load(textline, previous_commands, cmdlog, Textfile, str);\r
+ /*-----------------------------------------------------------------*/\r
+ printf("Loading log of iptables-restore commands %s ...\n", iptablesfile);\r
+ /*-----------------------------------------------------------------*/\r
+ load(textline, previous_iptables, iptablesfile, Textfile, str);\r
+ /*-----------------------------------------------------------------*/\r
+ printf("Loading log of ip6tables-restore commands %s ...\n", ip6tablesfile);\r
+ /*-----------------------------------------------------------------*/\r
+ load(textline, previous_ip6tables, ip6tablesfile, Textfile, str);\r
+\r
+ string(new_filename, strlen(iptablesfile)+2);\r
+ strcpy(new_filename, iptablesfile);\r
+ strcat(new_filename, "-x");\r
+ iptablesfile = new_filename;\r
+\r
+ string(new_filename, strlen(ip6tablesfile)+2);\r
+ strcpy(new_filename, ip6tablesfile);\r
+ strcat(new_filename, "-x");\r
+ ip6tablesfile = new_filename;\r
+ }\r