{\r
char *restor, *str;\r
string(restor,STRLEN);\r
+\r
+ /*-----------------------------------------------------------------*/\r
+ printf("Running %s <%s ...\n",iptablesrestore,iptablesfile);\r
+ /*-----------------------------------------------------------------*/\r
\r
save_line("COMMIT");\r
fclose(iptables_file);\r
}\r
else\r
{\r
- if( keyword->data_prio && !ip->fixedprio &&\r
+ if( ip->keyword->data_prio && !ip->fixedprio &&\r
ip->traffic>ip->credit+\r
(ip->min*ip->keyword->data_prio+(ip->keyword->fixed_prio<<20)) )\r
{\r
\r
printf("Total IP count: %d\n", i);\r
\r
+ /*-----------------------------------------------------------------*/\r
+ puts("Generating free bandwith classes ...");\r
+ /*-----------------------------------------------------------------*/\r
+\r
/* ---------------------------------------- tc - free bandwith shared class */\r
sprintf(str,"%s class add dev %s parent 1:%d classid 1:3 htb rate %dkbit ceil %dkbit burst %dk prio 2",tc,lan,parent,free_min,free_max,burst);\r
safe_run(str);\r
\r
sprintf(str,"%s filter add dev %s parent 1:0 protocol ip handle 3 fw flowid 1:3",tc,wan);\r
safe_run(str);\r
- \r
+\r
run_restore();\r
\r
if (log_file) fclose(log_file);\r