Lines Matching defs:ips
114 ipstate_save_t ips;
124 if (nlen >= sizeof(ips.ips_is.is_ifname) ||
125 olen >= sizeof(ips.ips_is.is_ifname))
134 for (pos = 0; read(fd, &ips, sizeof(ips)) == sizeof(ips); ) {
136 if (!strncmp(ips.ips_is.is_ifname[0], ifs, olen + 1)) {
137 strcpy(ips.ips_is.is_ifname[0], s);
140 if (!strncmp(ips.ips_is.is_ifname[1], ifs, olen + 1)) {
141 strcpy(ips.ips_is.is_ifname[1], s);
149 if (write(fd, &ips, sizeof(ips)) != sizeof(ips)) {
408 ipstate_save_t ips, *ipsp;
422 ipsp = &ips;
424 bzero((char *)ipsp, sizeof(ips));
434 printf("Getting state from addr %p\n", ips.ips_next);
443 printf("Got state next %p\n", ips.ips_next);
444 if (write(wfd, ipsp, sizeof(ips)) != sizeof(ips)) {
449 } while (ips.ips_next != NULL);
460 ipstate_save_t ips, *is, *ipshead = NULL, *is1, *ipstail = NULL;
474 bzero((char *)&ips, sizeof(ips));
480 i = read(sfd, &ips, sizeof(ips));
488 if (i != sizeof(ips)) {
490 i, (int)sizeof(ips));
500 bcopy((char *)&ips, (char *)is, sizeof(ips));