Searched refs:socktype (Results 1 - 18 of 18) sorted by relevance

/freebsd-10.0-release/tools/regression/sockets/kqueue/
H A Dkqueue.c62 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.0-release/tools/regression/netinet/msocket/
H A Dmsocket.c83 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.0-release/crypto/heimdal/lib/roken/
H A Dgetaddrinfo.c47 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 Dgetaddrinfo_hostspec.c42 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 Dgetaddrinfo-test.c41 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.0-release/sys/dev/iscsi/
H A Dicl_proxy.c106 static int icl_conn_connect_rdma(struct icl_conn *ic, int domain, int socktype,
108 static int icl_listen_add_rdma(struct icl_listen *il, int domain, int socktype, int protocol,
113 icl_conn_connect_tcp(struct icl_conn *ic, int domain, int socktype, argument
120 error = socreate(domain, &so, socktype, protocol,
168 icl_conn_connect(struct icl_conn *ic, bool rdma, int domain, int socktype, argument
174 return (icl_conn_connect_rdma(ic, domain, socktype, protocol, from_sa, to_sa));
181 return (icl_conn_connect_tcp(ic, domain, socktype, protocol, from_sa, to_sa));
306 icl_listen_add_tcp(struct icl_listen *il, int domain, int socktype, int protocol, argument
314 error = socreate(domain, &so, socktype, protocol,
369 icl_listen_add(struct icl_listen *il, bool rdma, int domain, int socktype, in argument
[all...]
H A Dicl.h133 int domain, int socktype, int protocol,
141 int socktype, int protocol, struct sockaddr *sa);
/freebsd-10.0-release/contrib/ntp/libntp/
H A Dntp_rfc2553.c142 int family, socktype, flags, protocol; local
165 socktype = hints->ai_socktype;
217 socktype = 0;
237 if (socktype == 0)
247 if (socktype == 0) {
249 socktype = SOCK_STREAM;
251 socktype = SOCK_DGRAM;
/freebsd-10.0-release/tools/regression/netinet/ipsockopt/
H A Dipsockopt.c743 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.0-release/contrib/unbound/services/
H A Dlisten_dnsport.h171 * @param socktype: for socket call.
183 int create_udp_sock(int family, int socktype, struct sockaddr* addr,
H A Dlisten_dnsport.c92 create_udp_sock(int family, int socktype, struct sockaddr* addr, argument
112 if((s = socket(family, socktype, 0)) == -1) {
/freebsd-10.0-release/usr.bin/netstat/
H A Dunix.c66 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.0-release/lib/libc/rpc/
H A Dclnt_bcast.c124 __rpc_getbroadifs(int af, int proto, int socktype, broadlist_t *list) argument
142 hints.ai_socktype = socktype;
H A Drpc_generic.c770 __rpc_socktype2seman(int socktype) argument
772 switch (socktype) {
/freebsd-10.0-release/sys/rpc/
H A Drpc_generic.c471 __rpc_socktype2seman(int socktype) argument
473 switch (socktype) {
/freebsd-10.0-release/sys/cam/ctl/
H A Dctl_ioctl.h699 int socktype; member in struct:ctl_iscsi_listen_params
H A Dctl_frontend_iscsi.c1716 cilp->socktype, cilp->protocol, sa);
/freebsd-10.0-release/usr.sbin/ctld/
H A Dkernel.c676 req.data.listen.socktype = ai->ai_socktype;

Completed in 142 milliseconds