Home
last modified time | relevance | path

Searched refs:ai_protocol (Results 1 – 25 of 160) sorted by relevance

1234567

/freebsd/usr.bin/getaddrinfo/
H A Dgetaddrinfo.c72 hints.ai_protocol = 0; in main()
101 if (!parse_protocol(optarg, &hints.ai_protocol)) { in main()
136 if (hints.ai_protocol != 0) { in main()
143 if (!parse_protocol(p, &hints.ai_protocol)) { in main()
289 protoent = getprotobynumber(ai->ai_protocol); in printaddrinfo()
291 n = printf(" %d", ai->ai_protocol); in printaddrinfo()
/freebsd/usr.sbin/nfsd/
H A Dnfsd.c325 hints.ai_protocol = IPPROTO_UDP; in main()
349 hints.ai_protocol = IPPROTO_UDP; in main()
373 hints.ai_protocol = IPPROTO_TCP; in main()
397 hints.ai_protocol = IPPROTO_TCP; in main()
511 hints.ai_protocol = IPPROTO_UDP; in main()
517 ai_udp->ai_protocol)) < 0) { in main()
545 hints.ai_protocol = IPPROTO_UDP; in main()
583 hints.ai_protocol = IPPROTO_UDP; in main()
589 ai_udp6->ai_protocol)) < 0) { in main()
625 hints.ai_protocol = IPPROTO_UDP; in main()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DSocketAddress.cpp211 int ai_family, int ai_socktype, int ai_protocol, in getaddrinfo()
216 ai_protocol, ai_flags); in getaddrinfo()
224 int ai_family, int ai_socktype, int ai_protocol, in GetAddressInfo()
232 hints.ai_protocol = ai_protocol; in GetAddressInfo()
209 getaddrinfo(const char * host,const char * service,int ai_family,int ai_socktype,int ai_protocol,int ai_flags) getaddrinfo() argument
222 GetAddressInfo(const char * hostname,const char * servname,int ai_family,int ai_socktype,int ai_protocol,int ai_flags) GetAddressInfo() argument
/freebsd/contrib/netbsd-tests/net/net/
H A Dt_udp.c28 hints.ai_protocol = IPPROTO_UDP; in sendit()
36 S = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in sendit()
45 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in sendit()
/freebsd/contrib/ofed/librdmacm/
H A Daddrinfo.c73 ai->ai_protocol = IPPROTO_TCP; in ucma_convert_to_ai()
77 ai->ai_protocol = IPPROTO_UDP; in ucma_convert_to_ai()
81 ai->ai_protocol = IPPROTO_TCP; in ucma_convert_to_ai()
83 ai->ai_protocol = IPPROTO_UDP; in ucma_convert_to_ai()
166 switch (ai->ai_protocol) { in ucma_convert_to_rai()
/freebsd/lib/libc/tests/nss/
H A Dgetaddrinfo_test.c102 ai1->ai_protocol != ai2->ai_protocol || in compare_addrinfo_()
162 ai->ai_flags, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in sdump_addrinfo()
360 if (ai->ai_protocol != 0 && ai->ai_protocol != IPPROTO_UDP && in addrinfo_test_correctness()
361 ai->ai_protocol != IPPROTO_TCP) in addrinfo_test_correctness()
/freebsd/contrib/unbound/compat/
H A Dfake-rfc2553.c141 if (hints->ai_protocol) in malloc_ai()
142 ai->ai_protocol = hints->ai_protocol; in malloc_ai()
/freebsd/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.c148 if (hints->ai_protocol) in malloc_ai()
149 ai->ai_protocol = hints->ai_protocol; in malloc_ai()
/freebsd/contrib/ldns/compat/
H A Dfake-rfc2553.c145 if (hints->ai_protocol) in malloc_ai()
146 ai->ai_protocol = hints->ai_protocol; in malloc_ai()
/freebsd/contrib/ntp/sntp/libevent/
H A Devutil.c838 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_()
843 tmp.ai_socktype = SOCK_STREAM; tmp.ai_protocol = IPPROTO_TCP; in evutil_new_addrinfo_()
847 tmp.ai_socktype = SOCK_DGRAM; tmp.ai_protocol = IPPROTO_UDP; in evutil_new_addrinfo_()
868 res->ai_protocol = hints->ai_protocol; in evutil_new_addrinfo_()
955 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols()
957 hints->ai_protocol = IPPROTO_UDP; in evutil_getaddrinfo_infer_protocols()
959 hints->ai_protocol = IPPROTO_TCP; in evutil_getaddrinfo_infer_protocols()
963 if (!hints->ai_socktype && hints->ai_protocol) { in evutil_getaddrinfo_infer_protocols()
964 if (hints->ai_protocol == IPPROTO_UDP) in evutil_getaddrinfo_infer_protocols()
966 else if (hints->ai_protocol == IPPROTO_TCP) in evutil_getaddrinfo_infer_protocols()
[all …]
/freebsd/contrib/libevent/
H A Devutil.c838 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_()
843 tmp.ai_socktype = SOCK_STREAM; tmp.ai_protocol = IPPROTO_TCP; in evutil_new_addrinfo_()
847 tmp.ai_socktype = SOCK_DGRAM; tmp.ai_protocol = IPPROTO_UDP; in evutil_new_addrinfo_()
868 res->ai_protocol = hints->ai_protocol; in evutil_new_addrinfo_()
955 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols()
957 hints->ai_protocol = IPPROTO_UDP; in evutil_getaddrinfo_infer_protocols()
959 hints->ai_protocol = IPPROTO_TCP; in evutil_getaddrinfo_infer_protocols()
963 if (!hints->ai_socktype && hints->ai_protocol) { in evutil_getaddrinfo_infer_protocols()
964 if (hints->ai_protocol == IPPROTO_UDP) in evutil_getaddrinfo_infer_protocols()
966 else if (hints->ai_protocol == IPPROTO_TCP) in evutil_getaddrinfo_infer_protocols()
[all …]
/freebsd/contrib/netbsd-tests/net/sys/
H A Dt_rfc6056.c80 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in test()
101 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in test()
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DSocketAddress.h39 int ai_socktype, int ai_protocol, int ai_flags = 0);
100 int ai_protocol = 0, int ai_flags = 0);
/freebsd/lib/libc/net/
H A Dgetaddrinfo.c418 pai->ai_protocol = ANY; in getaddrinfo()
450 if (pai->ai_socktype != ANY && pai->ai_protocol != ANY) { in getaddrinfo()
458 if (!MATCH(pai->ai_protocol, ex->e_protocol, in getaddrinfo()
584 if (!MATCH(pai->ai_protocol, ex->e_protocol, in getaddrinfo()
592 if (pai->ai_protocol == ANY && ex->e_protocol != ANY) in getaddrinfo()
593 pai->ai_protocol = ex->e_protocol; in getaddrinfo()
869 ai.ai_protocol = IPPROTO_UDP; /* is UDP too specific? */ in set_source()
878 ai.ai_protocol)) < 0) in set_source()
1173 cur->ai_next->ai_protocol = pai->ai_protocol; in explore_copy()
1541 switch (ai->ai_protocol) { in get_port()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/net/getaddrinfo/
H A Dh_gai.c88 printf("%sprotocol %d%s", start, res->ai_protocol, end); in print1()
128 ai.ai_protocol = atoi(optarg); in main()
/freebsd/contrib/bsnmp/lib/
H A Dsupport.c149 (*res)->ai_protocol = hints->ai_protocol; in getaddrinfo()
H A Dsupport.h57 int ai_protocol; member
/freebsd/crypto/heimdal/appl/test/
H A Dcommon.c149 hints.ai_protocol = IPPROTO_TCP; in client_doit()
162 s = socket (a->ai_family, a->ai_socktype, a->ai_protocol); in client_doit()
/freebsd/usr.sbin/rpc.statd/
H A Dstatd.c357 hints.ai_protocol = si.si_proto; in create_service()
426 res->ai_protocol = hints.ai_protocol; in create_service()
585 hints.ai_protocol = si.si_proto; in complete_service()
/freebsd/usr.bin/finger/
H A Dnet.c111 s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in do_protocol()
114 ai->ai_protocol); in do_protocol()
/freebsd/crypto/heimdal/appl/rsh/
H A Drsh.c728 s = socket (a->ai_family, a->ai_socktype, a->ai_protocol); in doit()
748 hints.ai_protocol = a->ai_protocol; in doit()
759 ea->ai_protocol); in doit()
983 hints.ai_protocol = IPPROTO_TCP; in main()
1010 hints.ai_protocol = IPPROTO_TCP; in main()
/freebsd/contrib/ntp/libntp/
H A Dntp_rfc2553.c309 ai->ai_protocol = hints->ai_protocol; in getaddrinfo()
313 protocol = hints->ai_protocol; in getaddrinfo()
/freebsd/crypto/heimdal/lib/roken/
H A Dgetaddrinfo.c54 if (hints != NULL && hints->ai_protocol != 0) { in get_port_protocol_socktype()
55 struct protoent *protoent = getprotobynumber (hints->ai_protocol); in get_port_protocol_socktype()
119 a->ai_protocol = protocol; in add_one()
/freebsd/contrib/libpcap/
H A Dnametoaddr.c206 hints.ai_protocol = IPPROTO_TCP; /*not really*/ in pcap_nametoaddrinfo()
342 hints.ai_protocol = IPPROTO_TCP; in pcap_nametoport()
386 hints.ai_protocol = IPPROTO_UDP; in pcap_nametoport()
/freebsd/usr.sbin/rpc.lockd/
H A Dlockd.c530 hints.ai_protocol = si.si_proto; in create_service()
604 res->ai_protocol = hints.ai_protocol; in create_service()
799 hints.ai_protocol = si.si_proto; in complete_service()

1234567