Lines Matching defs:ip
65 char *ip; /* this unit's IP address (as extracted from /etc/hosts) */
148 printf("%c:%c %s %s\n", 'C', 'S', "fd", "IP Address");
151 if (units[chassis][geoslot].ip != NULL)
152 printf("%d:%d %2d %s\n", chassis, geoslot, units[chassis][geoslot].fd, units[chassis][geoslot].ip);
225 if (units[chassis][geoslot].ip != NULL) {
226 free(units[chassis][geoslot].ip); /* get rid of the malloc'ed space that holds the IP address */
227 units[chassis][geoslot].ip = 0; /* then set the pointer to NULL */
242 if (units[chassis][geoslot].ip != NULL) {
284 *(ptr + strcspn(ptr, " \t")) = '\0'; /* null terminate the IP address so its a standalone string */
297 strcpy(ptr2, ptr); /* copy the IP address into our malloc'ed memory */
299 u->ip = ptr2; /* and remember the whole shebang */
310 char *ip;
322 ip = u->ip;
326 u->serv_addr->sin_addr.s_addr = inet_addr(ip);
330 fprintf(stderr, "pcap can't open a socket for connecting to IOP at %s\n", ip);
334 fprintf(stderr, "pcap can't connect to IOP at %s\n", ip);
780 if (u->ip && (open_with_IOP(u, FIND))) { /* connect to the remote IOP */
825 if (u->ip != NULL) {