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()
243 if (p->IOPname) last_name = p->name; /* remembering the last name found */
415 static char *translate_IOP_to_pcap_name(unit_t *u, char *IOPname, bpf_u_int32 iftype) {
432 name = malloc(strlen(IOPname) + 1); /* get memory for the IOP's name */
438 strcpy(name, IOPname); /* and copy it in */
439 iface->IOPname = name; /* and stick it into the structure */
441 if (strncmp(IOPname, "lo", 2) == 0) {
442 IOPportnum = atoi(&IOPname[2]);
451 } else if (strncmp(IOPname, "eth", 3) == 0) {
452 IOPportnum = atoi(&IOPname[3]);
461 } else if (strncmp(IOPname, "wan", 3) == 0) {
462 IOPportnum = atoi(&IOPname[3]);
472 fprintf(stderr, "Error... invalid IOP name %s\n", IOPname);
826 …if (p->IOPname && p->name && (strcmp(p->name, name) == 0)) { /* and if we found the interface w…
829 …send_to_fd(u->fd, strlen(p->IOPname)+1, (unsigned char *)p->IOPname); /* send the IOP's interface …