Lines Matching refs:IOPname
60 char *IOPname; /* this interface's name on an IOP */
159 char *i = (p->IOPname) ? p->IOPname : "";
203 if (cur->IOPname) free(cur->IOPname);
248 if (p->IOPname) last_name = p->name; /* remembering the last name found */
422 static char *translate_IOP_to_pcap_name(unit_t *u, char *IOPname, bpf_u_int32 iftype) {
439 name = malloc(strlen(IOPname) + 1); /* get memory for the IOP's name */
441 fprintf(stderr, "Error...couldn't allocate memory for IOPname...value of errno is: %d\n", errno);
445 strcpy(name, IOPname); /* and copy it in */
446 iface->IOPname = name; /* and stick it into the structure */
448 if (strncmp(IOPname, "lo", 2) == 0) {
449 IOPportnum = atoi(&IOPname[2]);
454 } else if (strncmp(IOPname, "eth", 3) == 0) {
455 IOPportnum = atoi(&IOPname[3]);
460 } else if (strncmp(IOPname, "wan", 3) == 0) {
461 IOPportnum = atoi(&IOPname[3]);
817 if (p->IOPname && p->name && (strcmp(p->name, name) == 0)) { /* and if we found the interface we want... */
820 send_to_fd(u->fd, strlen(p->IOPname)+1, (unsigned char *)p->IOPname); /* send the IOP's interface name, and a terminating null */