Lines Matching defs:curr
52 struct ifaddrs *curr;
61 for (curr = *ifap; curr != NULL; curr = curr->ifa_next) {
62 if ((cp = strchr(curr->ifa_name, ':')) != NULL)
72 struct ifaddrs *curr;
75 curr = ifa;
77 free(curr->ifa_name);
78 free(curr->ifa_addr);
79 free(curr->ifa_netmask);
80 free(curr->ifa_dstaddr);
81 free(curr);
99 struct ifaddrs *curr, *prev;
147 curr = calloc(1, sizeof (struct ifaddrs));
148 if (curr == NULL)
152 prev->ifa_next = curr;
155 *ifap = curr;
157 prev = curr;
159 curr->ifa_flags = lifrl.lifr_flags;
160 if ((curr->ifa_name = strdup(lifrp->lifr_name)) == NULL)
163 curr->ifa_addr = malloc(sizeof (struct sockaddr_storage));
164 if (curr->ifa_addr == NULL)
166 (void) memcpy(curr->ifa_addr, &lifrp->lifr_addr,
172 curr->ifa_netmask = malloc(sizeof (struct sockaddr_storage));
173 if (curr->ifa_netmask == NULL)
175 (void) memcpy(curr->ifa_netmask, &lifrl.lifr_addr,
179 if (curr->ifa_flags & IFF_POINTOPOINT) {
182 curr->ifa_dstaddr = malloc(
184 if (curr->ifa_dstaddr == NULL)
186 (void) memcpy(curr->ifa_dstaddr, &lifrl.lifr_addr,
188 } else if (curr->ifa_flags & IFF_BROADCAST) {
191 curr->ifa_broadaddr = malloc(
193 if (curr->ifa_broadaddr == NULL)
195 (void) memcpy(curr->ifa_broadaddr, &lifrl.lifr_addr,