- /* check for port already assigned, but not for shared loop interface */
- searchif = interface_newlist;
- if (!!strcmp(value, options.loopback_lcr))
- {
- while(searchif) {
- ifport = searchif->ifport;
- while(ifport) {
- if (!strcasecmp(ifport->portname, value)) {
- SPRINT(interface_error, "Error in %s (line %d): port '%s' already used above.\n", filename, line, value);
- return(-1);
- }
- ifport = ifport->next;
- }
- searchif = searchif->next;
- }
- }