/freebsd-10.1-release/tools/regression/sockets/kqueue/ |
H A D | kqueue.c | 62 fail(int error, const char *func, const char *socktype, const char *rest) argument 67 if (socktype == NULL) 70 printf("# %s(%s): %s\n", func, socktype, 73 printf("# %s(%s, %s): %s\n", func, socktype, rest, 79 fail_assertion(const char *func, const char *socktype, const char *rest, argument 85 if (socktype == NULL) 90 socktype, assertion); 93 socktype, rest, assertion); 104 test_evfilt_read(int kq, int fd[2], const char *socktype) argument 114 fail(errno, "kevent", socktype, "EVFILT_REA 189 test_evfilt_write(int kq, int fd[2], const char *socktype) argument [all...] |
/freebsd-10.1-release/tools/regression/netinet/msocket/ |
H A D | msocket.c | 83 u_char modifiedv, u_char fakev, const char *socktype, int sock, 99 socktype, optstring); 102 socktype, optstring); 105 "%d not %d", socktype, optstring, uc, defaultv); 114 socktype, optstring); 117 socktype, optstring); 124 socktype, optstring); 127 socktype, optstring); 130 "%d not %d", socktype, optstring, uc, modifiedv); 139 struct in_addr modifiedv, struct in_addr fakev, const char *socktype, 82 test_u_char(int optname, const char *optstring, u_char defaultv, u_char modifiedv, u_char fakev, const char *socktype, int sock, int flags) argument 138 test_in_addr(int optname, const char *optstring, struct in_addr defaultv, struct in_addr modifiedv, struct in_addr fakev, const char *socktype, int sock, int flags) argument 242 test_add_multi(int sock, const char *socktype, struct ip_mreq imr, int flags) argument 284 test_drop_multi(int sock, const char *socktype, struct ip_mreq imr, int flags) argument [all...] |
/freebsd-10.1-release/crypto/heimdal/lib/roken/ |
H A D | getaddrinfo.c | 47 int *socktype) 52 *socktype = 0; 65 *socktype = hints->ai_socktype; 67 if (*socktype == SOCK_STREAM) { 71 } else if (*socktype == SOCK_DGRAM) { 75 } else if (*socktype == 0) { 81 *socktype = SOCK_STREAM; 85 *socktype = SOCK_DGRAM; 104 add_one (int port, int protocol, int socktype, argument 120 a->ai_socktype = socktype; 43 get_port_protocol_socktype(const char *servname, const struct addrinfo *hints, int *port, int *protocol, int *socktype) argument 180 get_null(const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument 223 add_hostent(int port, int protocol, int socktype, struct addrinfo ***current, int (*func)(struct addrinfo *, void *data, int port), struct hostent *he, int *flags) argument 271 get_number(const char *nodename, const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument 311 get_nodes(const char *nodename, const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument 377 int socktype = 0; local [all...] |
H A D | getaddrinfo_hostspec.c | 42 int socktype, 54 int socktype; member in struct:hst 67 hints.ai_socktype = socktype; 71 hints.ai_socktype = hstp->socktype; 41 roken_getaddrinfo_hostspec2(const char *hostspec, int socktype, int port, struct addrinfo **ai) argument
|
H A D | getaddrinfo-test.c | 41 static int socktype; variable 51 {"socktype",0, arg_integer, &socktype, "socktype", NULL}, 79 hints.ai_socktype = socktype; 99 printf ("\tfamily = %d, socktype = %d, protocol = %d, "
|
/freebsd-10.1-release/sys/dev/iscsi/ |
H A D | icl_proxy.c | 108 static int icl_conn_connect_rdma(struct icl_conn *ic, int domain, int socktype, 110 static int icl_listen_add_rdma(struct icl_listen *il, int domain, int socktype, int protocol, 115 icl_conn_connect_tcp(struct icl_conn *ic, int domain, int socktype, argument 122 error = socreate(domain, &so, socktype, protocol, 170 icl_conn_connect(struct icl_conn *ic, bool rdma, int domain, int socktype, argument 176 return (icl_conn_connect_rdma(ic, domain, socktype, protocol, from_sa, to_sa)); 183 return (icl_conn_connect_tcp(ic, domain, socktype, protocol, from_sa, to_sa)); 309 icl_listen_add_tcp(struct icl_listen *il, int domain, int socktype, argument 317 error = socreate(domain, &so, socktype, protocol, 373 icl_listen_add(struct icl_listen *il, bool rdma, int domain, int socktype, argument [all...] |
H A D | icl.h | 139 int domain, int socktype, int protocol, 148 int domain, int socktype, int protocol,
|
/freebsd-10.1-release/tools/regression/netinet/ipsockopt/ |
H A D | ipsockopt.c | 743 int i, sock, socktype; local 748 socktype = socktypeset[i]; 755 if (getuid() != 0 && socktype == SOCK_RAW) 757 if (geteuid() != 0 && !priv && socktype == SOCK_RAW) 763 sock = get_socket(socktype, priv); 770 sock = get_socket(socktype, priv); 777 sock = get_socket(socktype, priv); 785 sock = get_socket(socktype, priv); 793 sock = get_socket(socktype, priv); 801 sock = get_socket(socktype, pri [all...] |
/freebsd-10.1-release/usr.bin/netstat/ |
H A D | unix.c | 66 static const char *const socktype[] = variable 76 sprintf(mibvar, "net.local.%s.pcblist", socktype[type]); 244 socktype[type]); 247 socktype[type]); 250 socktype[type]); 289 (long)so->so_pcb, socktype[so->so_type], so->so_rcv.sb_cc,
|
/freebsd-10.1-release/contrib/ntp/libntp/ |
H A D | ntp_rfc2553.c | 289 int family, socktype, flags, protocol; local 312 socktype = hints->ai_socktype; 364 socktype = 0; 384 if (socktype == 0) 394 if (socktype == 0) { 396 socktype = SOCK_STREAM; 398 socktype = SOCK_DGRAM;
|
/freebsd-10.1-release/contrib/unbound/services/ |
H A D | listen_dnsport.h | 176 * @param socktype: for socket call. 192 int create_udp_sock(int family, int socktype, struct sockaddr* addr,
|
H A D | listen_dnsport.c | 93 create_udp_sock(int family, int socktype, struct sockaddr* addr, argument 113 if((s = socket(family, socktype, 0)) == -1) {
|
/freebsd-10.1-release/contrib/ntp/sntp/libevent/test/ |
H A D | regress.h | 113 int socktype, int protocol, int line);
|
H A D | regress_util.c | 316 tt_str_op(cp,==,"<addr with socktype 99>"); 811 int socktype, int protocol, int line) 818 if (socktype > 0) 819 tt_int_op(ai->ai_socktype, ==, socktype); 810 test_ai_eq_(const struct evutil_addrinfo *ai, const char *sockaddr_port, int socktype, int protocol, int line) argument
|
/freebsd-10.1-release/contrib/ntp/scripts/lib/NTP/ |
H A D | Util.pm | 76 ($err, $res) = getaddrinfo($host, '', {socktype => SOCK_RAW});
|
/freebsd-10.1-release/sbin/devd/ |
H A D | devd.cc | 125 int socktype; member in struct:client 831 create_socket(const char *name, int socktype) argument 836 if ((fd = socket(PF_LOCAL, socktype, 0)) < 0) 872 if (i->socktype == SOCK_SEQPACKET) 919 new_client(int fd, int socktype) argument 930 s.socktype = socktype;
|
/freebsd-10.1-release/lib/libc/rpc/ |
H A D | clnt_bcast.c | 123 __rpc_getbroadifs(int af, int proto, int socktype, broadlist_t *list) argument 141 hints.ai_socktype = socktype;
|
H A D | rpc_generic.c | 769 __rpc_socktype2seman(int socktype) argument 771 switch (socktype) {
|
/freebsd-10.1-release/sys/rpc/ |
H A D | rpc_generic.c | 470 __rpc_socktype2seman(int socktype) argument 472 switch (socktype) {
|
/freebsd-10.1-release/sys/cam/ctl/ |
H A D | ctl_ioctl.h | 739 int socktype; member in struct:ctl_iscsi_listen_params
|
H A D | ctl_frontend_iscsi.c | 1749 cilp->socktype, cilp->protocol, sa, cilp->portal_id);
|
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Core/ |
H A D | ConnectionFileDescriptor.cpp | 1311 const int socktype = SOCK_STREAM; 1313 int listen_fd = ::socket (family, socktype, protocol); 1331 if (!listen_addr.getaddrinfo(host_str.c_str(), port_str.c_str(), family, socktype, protocol))
|
/freebsd-10.1-release/contrib/ntp/sntp/libevent/ |
H A D | listener.c | 218 int socktype = SOCK_STREAM | EVUTIL_SOCK_NONBLOCK; local 224 socktype |= EVUTIL_SOCK_CLOEXEC; 226 fd = evutil_socket_(family, socktype, 0);
|
/freebsd-10.1-release/usr.sbin/ctld/ |
H A D | kernel.c | 947 req.data.listen.socktype = ai->ai_socktype;
|