Lines Matching refs:IOPname
58 char *IOPname; /* this interface's name on an IOP */ member
154 char *i = (p->IOPname) ? p->IOPname : ""; in dump_unit_table()
198 if (cur->IOPname) free(cur->IOPname); in empty_unit_iface()
247 if (p->IOPname) last_name = p->name; /* remembering the last name found */ in find_nth_interface_name()
420 static char *translate_IOP_to_pcap_name(unit_t *u, char *IOPname, bpf_u_int32 iftype) { in translate_IOP_to_pcap_name() argument
437 name = malloc(strlen(IOPname) + 1); /* get memory for the IOP's name */ in translate_IOP_to_pcap_name()
443 strcpy(name, IOPname); /* and copy it in */ in translate_IOP_to_pcap_name()
444 iface->IOPname = name; /* and stick it into the structure */ in translate_IOP_to_pcap_name()
446 if (strncmp(IOPname, "lo", 2) == 0) { in translate_IOP_to_pcap_name()
447 IOPportnum = atoi(&IOPname[2]); in translate_IOP_to_pcap_name()
456 } else if (strncmp(IOPname, "eth", 3) == 0) { in translate_IOP_to_pcap_name()
457 IOPportnum = atoi(&IOPname[3]); in translate_IOP_to_pcap_name()
466 } else if (strncmp(IOPname, "wan", 3) == 0) { in translate_IOP_to_pcap_name()
467 IOPportnum = atoi(&IOPname[3]); in translate_IOP_to_pcap_name()
477 fprintf(stderr, "Error... invalid IOP name %s\n", IOPname); in translate_IOP_to_pcap_name()
850 …if (p->IOPname && p->name && (strcmp(p->name, name) == 0)) { /* and if we found the interface w… in acn_open_live()
853 …send_to_fd(u->fd, strlen(p->IOPname)+1, (unsigned char *)p->IOPname); /* send the IOP's interface … in acn_open_live()