/freebsd/contrib/netbsd-tests/lib/libc/net/getaddrinfo/ |
H A D | no_host_v4v6.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv http 2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http 3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http 4 ai3: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 5 ai4: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 7 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv echo 8 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv echo 9 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv echo 10 ai3: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv echo 11 ai4: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv echo [all …]
|
H A D | basics_v4v6.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv http 2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http 3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http 5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv http 6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv http 10 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http 11 ai2: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 12 ai3: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http [all …]
|
H A D | no_host_v4.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv http 2 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 3 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv echo 6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv echo 7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv echo 9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv tftp 10 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv tftp 11 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv tftp 13 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv 80 [all …]
|
H A D | basics_v4.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv http 2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http 3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http 5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv http 6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv http 10 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 11 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 13 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv tftp [all …]
|
H A D | no_serv_v4v6.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv (empty) 2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv 0 3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv 0 5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv (empty) 6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0 7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv 0 9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv (empty) 10 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv 0 11 ai2: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0 12 ai3: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv 0 [all …]
|
H A D | no_serv_v4.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv (empty) 2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv 0 3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv 0 5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv (empty) 6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0 7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv 0 9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv (empty) 10 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0 11 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv 0 13 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv (empty)
|
H A D | sock_raw_v4v6.exp | 1 arg: flags 0x2 family 0 socktype 3 protocol 0 addrlen 0 host localhost serv (empty) 2 ai1: flags 0x2 family 24 socktype 3 protocol 0 addrlen 28 host ::1 serv 0 3 ai2: flags 0x2 family 2 socktype 3 protocol 0 addrlen 16 host 127.0.0.1 serv 0 5 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv (empty) 6 ai1: flags 0x2 family 24 socktype 3 protocol 59 addrlen 28 host ::1 serv 0 7 ai2: flags 0x2 family 2 socktype 3 protocol 59 addrlen 16 host 127.0.0.1 serv 0 9 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv 80 11 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv www 13 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host ::1 serv (empty) 14 ai1: flags 0x2 family 24 socktype 3 protocol 59 addrlen 28 host ::1 serv 0
|
H A D | sock_raw_v4.exp | 1 arg: flags 0x2 family 0 socktype 3 protocol 0 addrlen 0 host localhost serv (empty) 2 ai1: flags 0x2 family 2 socktype 3 protocol 0 addrlen 16 host 127.0.0.1 serv 0 4 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv (empty) 5 ai1: flags 0x2 family 2 socktype 3 protocol 59 addrlen 16 host 127.0.0.1 serv 0 7 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv 80 9 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv www 11 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host ::1 serv (empty) 12 ai1: flags 0x2 family 24 socktype 3 protocol 59 addrlen 28 host ::1 serv 0
|
H A D | spec_fam_v4v6.exp | 1 arg: flags 0x2 family 2 socktype 0 protocol 0 addrlen 0 host localhost serv http 2 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 3 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 5 arg: flags 0x2 family 24 socktype 0 protocol 0 addrlen 0 host localhost serv http 6 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http 7 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http
|
H A D | spec_fam_v4.exp | 1 arg: flags 0x2 family 2 socktype 0 protocol 0 addrlen 0 host localhost serv http 2 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 3 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 5 arg: flags 0x2 family 24 socktype 0 protocol 0 addrlen 0 host localhost serv http
|
H A D | scoped.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host fe80::1%lo0 serv http 2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host fe80::1%lo0 serv http 3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host fe80::1%lo0 serv http
|
/freebsd/tools/regression/sockets/kqueue/ |
H A D | kqueue.c | 60 fail(int error, const char *func, const char *socktype, const char *rest) in fail() argument 65 if (socktype == NULL) in fail() 68 printf("# %s(%s): %s\n", func, socktype, in fail() 71 printf("# %s(%s, %s): %s\n", func, socktype, rest, in fail() 77 fail_assertion(const char *func, const char *socktype, const char *rest, in fail_assertion() argument 83 if (socktype == NULL) in fail_assertion() 88 socktype, assertion); in fail_assertion() 91 socktype, rest, assertion); in fail_assertion() 102 test_evfilt_read(int kq, int fd[2], const char *socktype) in test_evfilt_read() argument 112 fail(errno, "kevent", socktype, "EVFILT_READ, EV_ADD"); in test_evfilt_read() [all …]
|
/freebsd/tools/regression/netinet/msocket/ |
H A D | msocket.c | 81 u_char modifiedv, u_char fakev, const char *socktype, int sock, in test_u_char() argument 97 socktype, optstring); in test_u_char() 100 socktype, optstring); in test_u_char() 103 "%d not %d", socktype, optstring, uc, defaultv); in test_u_char() 112 socktype, optstring); in test_u_char() 115 socktype, optstring); in test_u_char() 122 socktype, optstring); in test_u_char() 125 socktype, optstring); in test_u_char() 128 "%d not %d", socktype, optstring, uc, modifiedv); in test_u_char() 137 struct in_addr modifiedv, struct in_addr fakev, const char *socktype, in test_in_addr() argument [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | getaddrinfo.c | 47 int *socktype) in get_port_protocol_socktype() argument 52 *socktype = 0; in get_port_protocol_socktype() 65 *socktype = hints->ai_socktype; in get_port_protocol_socktype() 67 if (*socktype == SOCK_STREAM) { in get_port_protocol_socktype() 71 } else if (*socktype == SOCK_DGRAM) { in get_port_protocol_socktype() 75 } else if (*socktype == 0) { in get_port_protocol_socktype() 81 *socktype = SOCK_STREAM; in get_port_protocol_socktype() 85 *socktype = SOCK_DGRAM; in get_port_protocol_socktype() 104 add_one (int port, int protocol, int socktype, in add_one() argument 120 a->ai_socktype = socktype; in add_one() [all …]
|
H A D | getaddrinfo_hostspec.c | 42 int socktype, in roken_getaddrinfo_hostspec2() argument 54 int socktype; in roken_getaddrinfo_hostspec2() member 67 hints.ai_socktype = socktype; in roken_getaddrinfo_hostspec2() 71 hints.ai_socktype = hstp->socktype; in roken_getaddrinfo_hostspec2()
|
H A D | getaddrinfo-test.c | 41 static int socktype; variable 51 {"socktype",0, arg_integer, &socktype, "socktype", NULL}, 79 hints.ai_socktype = socktype; in doit()
|
/freebsd/tools/regression/netinet/ipsockopt/ |
H A D | ipsockopt.c | 741 int i, sock, socktype; in testsuite() local 746 socktype = socktypeset[i]; in testsuite() 753 if (getuid() != 0 && socktype == SOCK_RAW) in testsuite() 755 if (geteuid() != 0 && !priv && socktype == SOCK_RAW) in testsuite() 761 sock = get_socket(socktype, priv); in testsuite() 768 sock = get_socket(socktype, priv); in testsuite() 775 sock = get_socket(socktype, priv); in testsuite() 783 sock = get_socket(socktype, priv); in testsuite() 791 sock = get_socket(socktype, priv); in testsuite() 799 sock = get_socket(socktype, priv); in testsuite() [all …]
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | bio_sock2.c | 41 int BIO_socket(int domain, int socktype, int protocol, int options) in BIO_socket() argument 48 sock = socket(domain, socktype, protocol); in BIO_socket() 236 int socktype; in BIO_listen() local 237 socklen_t socktype_len = sizeof(socktype); in BIO_listen() 245 (void *)&socktype, &socktype_len) != 0 in BIO_listen() 246 || socktype_len != sizeof(socktype)) { in BIO_listen() 297 if (socktype != SOCK_DGRAM && listen(sock, MAX_LISTEN) == -1) { in BIO_listen()
|
H A D | bio_addr.c | 576 static int addrinfo_wrap(int family, int socktype, in addrinfo_wrap() argument 587 (*bai)->bai_socktype = socktype; in addrinfo_wrap() 588 if (socktype == SOCK_STREAM) in addrinfo_wrap() 590 if (socktype == SOCK_DGRAM) in addrinfo_wrap() 625 int family, int socktype, BIO_ADDRINFO **res) in BIO_lookup() argument 627 return BIO_lookup_ex(host, service, lookup_type, family, socktype, 0, res); in BIO_lookup() 653 int family, int socktype, int protocol, BIO_ADDRINFO **res) in BIO_lookup_ex() argument 676 if (addrinfo_wrap(family, socktype, host, strlen(host), 0, res)) in BIO_lookup_ex() 695 hints.ai_socktype = socktype; in BIO_lookup_ex() 858 switch (socktype) { in BIO_lookup_ex() [all …]
|
/freebsd/sys/dev/iscsi/ |
H A D | icl_soft_proxy.c | 104 icl_soft_proxy_connect(struct icl_conn *ic, int domain, int socktype, in icl_soft_proxy_connect() argument 110 error = socreate(domain, &so, socktype, protocol, in icl_soft_proxy_connect() 247 icl_listen_add_tcp(struct icl_listen *il, int domain, int socktype, in icl_listen_add_tcp() argument 255 error = socreate(domain, &so, socktype, protocol, in icl_listen_add_tcp() 311 icl_listen_add(struct icl_listen *il, bool rdma, int domain, int socktype, in icl_listen_add() argument 320 return (icl_listen_add_tcp(il, domain, socktype, protocol, sa, in icl_listen_add()
|
H A D | icl.h | 157 int domain, int socktype, int protocol, 167 int socktype, int protocol, struct sockaddr *from_sa,
|
/freebsd/usr.bin/netstat/ |
H A D | unix.c | 63 static const char *const socktype[] = variable 73 snprintf(mibvar, sizeof(mibvar), "net.local.%s.pcblist", socktype[type]); in pcblist_sysctl() 248 socktype[type]); in unixpr() 252 socktype[type]); in unixpr() 256 socktype[type]); in unixpr() 310 (long)so->so_pcb, socktype[so->so_type], so->so_rcv.sb_cc, in unixdomainpr()
|
/freebsd/contrib/ntp/libntp/ |
H A D | ntp_rfc2553.c | 289 int family, socktype, flags, protocol; in getaddrinfo() local 312 socktype = hints->ai_socktype; in getaddrinfo() 364 socktype = 0; in getaddrinfo() 384 if (socktype == 0) in getaddrinfo() 394 if (socktype == 0) { in getaddrinfo() 396 socktype = SOCK_STREAM; in getaddrinfo() 398 socktype = SOCK_DGRAM; in getaddrinfo()
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | BIO_ADDRINFO.pod | 25 int family, int socktype, int protocol, BIO_ADDRINFO **res); 28 int family, int socktype, BIO_ADDRINFO **res); 47 be if B<host> is B<NULL>. B<family>, B<socktype> and B<protocol> are used to 50 AF_UNSPEC. B<socktype> can be SOCK_STREAM, SOCK_DGRAM or 0. Specifying 0
|
/freebsd/sbin/devd/tests/ |
H A D | client_test.c | 70 common_setup(int socktype, const char* sockpath) { in common_setup() argument 77 s = socket(PF_LOCAL, socktype, 0); in common_setup()
|