Home
last modified time | relevance | path

Searched refs:curaddr (Results 1 – 2 of 2) sorted by relevance

/external/libpcap/
Dinet.c368 pcap_addr_t *curaddr, *prevaddr, *nextaddr; in add_addr_to_iflist() local
390 curaddr = malloc(sizeof(pcap_addr_t)); in add_addr_to_iflist()
391 if (curaddr == NULL) { in add_addr_to_iflist()
397 curaddr->next = NULL; in add_addr_to_iflist()
399 curaddr->addr = dup_sockaddr(addr, addr_size); in add_addr_to_iflist()
400 if (curaddr->addr == NULL) { in add_addr_to_iflist()
403 free(curaddr); in add_addr_to_iflist()
407 curaddr->addr = NULL; in add_addr_to_iflist()
410 curaddr->netmask = dup_sockaddr(netmask, netmask_size); in add_addr_to_iflist()
411 if (curaddr->netmask == NULL) { in add_addr_to_iflist()
[all …]
Dfad-win32.c58 pcap_addr_t *curaddr, *prevaddr, *nextaddr; in add_addr_to_list() local
63 curaddr = (pcap_addr_t*)malloc(sizeof(pcap_addr_t)); in add_addr_to_list()
64 if (curaddr == NULL) { in add_addr_to_list()
70 curaddr->next = NULL; in add_addr_to_list()
72 curaddr->addr = (struct sockaddr*)dup_sockaddr(addr, sizeof(struct sockaddr_storage)); in add_addr_to_list()
73 if (curaddr->addr == NULL) { in add_addr_to_list()
76 free(curaddr); in add_addr_to_list()
80 curaddr->addr = NULL; in add_addr_to_list()
83 curaddr->netmask = (struct sockaddr*)dup_sockaddr(netmask, sizeof(struct sockaddr_storage)); in add_addr_to_list()
84 if (curaddr->netmask == NULL) { in add_addr_to_list()
[all …]