Lines Matching defs:curr

88     netif *curr = netifP;
89 while (curr != NULL) {
90 if (curr->name != NULL)
91 free(curr->name);
92 if (curr->displayName != NULL)
93 free(curr->displayName);
94 if (curr->addrs != NULL)
95 free_netaddr (curr->addrs);
97 free(curr);
98 curr = netifP;
103 netaddr *curr = netaddrP;
104 while (curr != NULL) {
106 free(curr);
107 curr = netaddrP;
212 netif *curr;
256 curr = (netif *)calloc(1, sizeof(netif));
257 if (curr != NULL) {
263 curr->displayName = (char *)malloc(ifrowP->dwDescrLen + 1);
265 curr->displayName = (wchar_t *)malloc(wlen*(sizeof(wchar_t))+1);
268 curr->name = (char *)malloc(strlen(dev_name) + 1);
270 if (curr->name == NULL || curr->displayName == NULL) {
271 if (curr->name) free(curr->name);
272 if (curr->displayName) free(curr->displayName);
273 curr = NULL;
276 if (curr == NULL) {
288 strcpy(curr->name, dev_name);
291 strncpy(curr->displayName, ifrowP->bDescr, ifrowP->dwDescrLen);
292 curr->displayName[ifrowP->dwDescrLen] = '\0';
294 // call MultiByteToWideChar again to fill curr->displayName
297 ifrowP->dwDescrLen, curr->displayName, wlen) == 0) {
302 free(curr->name);
303 free(curr->displayName);
304 free(curr);
307 curr->displayName[wlen*(sizeof(wchar_t))] = '\0';
308 curr->dNameIsUnicode = TRUE;
312 curr->dwIndex = ifrowP->dwIndex;
313 curr->ifType = ifrowP->dwType;
314 curr->index = GetFriendlyIfIndex(ifrowP->dwIndex);
322 netifP = curr;
328 tail->next = curr;
396 netaddr *curr = (netaddr *)malloc(sizeof(netaddr));
397 if (curr == NULL) {
404 curr->addr.him4.sin_family = AF_INET;
405 curr->addr.him4.sin_addr.s_addr = tableP->table[i].dwAddr;
421 curr->brdcast.him4.sin_family = AF_INET;
423 curr->brdcast.him4.sin_addr.s_addr = (tableP->table[i].dwAddr & tableP->table[i].dwMask) | (0xffffffff ^ tableP->table[i].dwMask);
425 curr->brdcast.him4.sin_addr.s_addr = (tableP->table[i].dwAddr & tableP->table[i].dwMask);
427 curr->mask = 0;
430 curr->mask++;
439 curr->mask = -1;
443 curr->next = netaddrP;
444 netaddrP = curr;
640 netif *ifList, *curr;
659 curr = ifList;
660 while (curr != NULL) {
661 if (strcmp(name_utf, curr->name) == 0) {
664 curr = curr->next;
668 if (curr != NULL) {;
669 netifObj = createNetworkInterface(env, curr, -1, NULL);
689 netif *ifList, *curr;
703 curr = ifList;
704 while (curr != NULL) {
705 if (index == curr->index) {
708 curr = curr->next;
712 if (curr != NULL) {
713 netifObj = createNetworkInterface(env, curr, -1, NULL);
730 netif *ifList, *curr;
748 curr = ifList;
749 while (curr != NULL) {
755 count = enumAddresses_win(env, curr, &addrList);
777 netifObj = createNetworkInterface(env, curr, count, addrList);
782 curr = curr->next;
800 netif *ifList, *curr;
827 curr = ifList;
829 while (curr != NULL) {
832 netifObj = createNetworkInterface(env, curr, -1, NULL);
840 curr = curr->next;