Searched defs:ahints (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c566 struct addrinfo ahints, *ares; local
568 (void) memset(&ahints, 0, sizeof (struct addrinfo));
569 ahints.ai_family = res0->ai_family;
570 ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM;
571 ahints.ai_protocol = uflag ? IPPROTO_UDP : IPPROTO_TCP;
572 ahints.ai_flags = AI_PASSIVE;
573 if ((error = getaddrinfo(sflag, pflag, &ahints, &ares)))

Completed in 139 milliseconds