Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c587 struct addrinfo ahints, *ares; in remote_connect() local
589 (void) memset(&ahints, 0, sizeof (struct addrinfo)); in remote_connect()
590 ahints.ai_family = res0->ai_family; in remote_connect()
591 ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; in remote_connect()
592 ahints.ai_protocol = uflag ? IPPROTO_UDP : IPPROTO_TCP; in remote_connect()
593 ahints.ai_flags = AI_PASSIVE; in remote_connect()
594 if ((error = getaddrinfo(sflag, pflag, &ahints, &ares))) in remote_connect()