Home | History | Annotate | Download | only in dist

Lines Matching defs:addrinfo

1024 	struct addrinfo hints, *addrinfo, *ai_next;	/* temp var needed to translate between hostname to its address */
1027 addrinfo = NULL;
1028 memset(&hints, 0, sizeof(struct addrinfo));
1032 addrinfo = sock_initaddress(host, NULL, &hints, errbuf,
1034 if (addrinfo == NULL)
1044 ai_next = addrinfo;
1050 freeaddrinfo(addrinfo);
1059 if (addrinfo)
1060 freeaddrinfo(addrinfo);
1095 struct addrinfo hints; /* temp, needed to open a socket connection */
1096 struct addrinfo *addrinfo; /* temp, needed to open a socket connection */
1140 addrinfo = NULL;
1179 memset(&hints, 0, sizeof(struct addrinfo));
1180 /* TEMP addrinfo is NULL in case of active */
1186 addrinfo = sock_initaddress(NULL, NULL, &hints, fp->errbuf,
1188 if (addrinfo == NULL)
1191 if ((sockdata = sock_open(NULL, addrinfo, SOCKOPEN_SERVER,
1195 /* addrinfo is no longer used */
1196 freeaddrinfo(addrinfo);
1197 addrinfo = NULL;
1307 memset(&hints, 0, sizeof(struct addrinfo));
1313 addrinfo = sock_initaddress(host, portstring, &hints,
1315 if (addrinfo == NULL)
1318 if ((sockdata = sock_open(host, addrinfo, SOCKOPEN_CLIENT, 0, fp->errbuf, PCAP_ERRBUF_SIZE)) == INVALID_SOCKET)
1321 /* addrinfo is no longer used */
1322 freeaddrinfo(addrinfo);
1323 addrinfo = NULL;
1517 if (addrinfo != NULL)
1518 freeaddrinfo(addrinfo);
2322 struct addrinfo hints; /* temp variable needed to resolve hostnames into to socket representation */
2323 struct addrinfo *addrinfo; /* temp variable needed to resolve hostnames into to socket representation */
2337 memset(&hints, 0, sizeof(struct addrinfo));
2344 addrinfo = sock_initaddress(host, RPCAP_DEFAULT_NETPORT,
2349 addrinfo = sock_initaddress(host, port, &hints,
2352 if (addrinfo == NULL)
2355 if ((*sockctrlp = sock_open(host, addrinfo, SOCKOPEN_CLIENT, 0,
2358 freeaddrinfo(addrinfo);
2362 /* addrinfo is no longer used */
2363 freeaddrinfo(addrinfo);
2364 addrinfo = NULL;
2927 struct addrinfo hints; /* temporary struct to keep settings needed to open the new socket */
2928 struct addrinfo *addrinfo; /* keeps the addrinfo chain; required to open a new socket */
2940 memset(&hints, 0, sizeof(struct addrinfo));
2954 addrinfo = sock_initaddress(address,
2960 addrinfo = sock_initaddress(address, port, &hints, errbuf,
2963 if (addrinfo == NULL)
2968 if ((sockmain = sock_open(NULL, addrinfo, SOCKOPEN_SERVER, 1, errbuf, PCAP_ERRBUF_SIZE)) == INVALID_SOCKET)
2970 freeaddrinfo(addrinfo);
2973 freeaddrinfo(addrinfo);
3125 struct addrinfo hints, *addrinfo, *ai_next; /* temp var needed to translate between hostname to its address */
3131 addrinfo = NULL;
3132 memset(&hints, 0, sizeof(struct addrinfo));
3136 addrinfo = sock_initaddress(host, NULL, &hints, errbuf,
3138 if (addrinfo == NULL)
3145 ai_next = addrinfo;
3210 freeaddrinfo(addrinfo);
3226 if (addrinfo)
3227 freeaddrinfo(addrinfo);