Home
last modified time | relevance | path

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

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