- if(mix_new_hosts)\r
- for_each(textline, previous_classmap)\r
- {\r
- ptr = strchr(textline->str, ' ');\r
- if(ptr)\r
- {\r
- if(!strncmp(ip->addr, textline->str, ptr-textline->str))\r
- {\r
- ip->mark = atoi(ptr+1);\r
- printf("Match class: %s %d\n", ip->addr, ip->mark);\r
- }\r
- } \r
- }\r
- \r
- if(!mix_new_hosts || !ip->mark)\r
- ip->mark = FIRSTIPCLASS+1+class_count++;\r
- \r