/freebsd-9.3-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-9.3-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-9.3-release/crypto/heimdal/lib/roken/ |
H A D | getaddrinfo.c | 50 int *socktype) 55 *socktype = 0; 68 *socktype = hints->ai_socktype; 70 if (*socktype == SOCK_STREAM) { 74 } else if (*socktype == SOCK_DGRAM) { 78 } else if (*socktype == 0) { 84 *socktype = SOCK_STREAM; 88 *socktype = SOCK_DGRAM; 107 add_one (int port, int protocol, int socktype, argument 123 a->ai_socktype = socktype; 46 get_port_protocol_socktype(const char *servname, const struct addrinfo *hints, int *port, int *protocol, int *socktype) argument 183 get_null(const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument 226 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 274 get_number(const char *nodename, const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument 314 get_nodes(const char *nodename, const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument 380 int socktype = 0; local [all...] |
H A D | getaddrinfo_hostspec.c | 45 int socktype, 57 int socktype; member in struct:hst 70 hints.ai_socktype = socktype; 74 hints.ai_socktype = hstp->socktype; 44 roken_getaddrinfo_hostspec2(const char *hostspec, int socktype, int port, struct addrinfo **ai) argument
|
H A D | getaddrinfo-test.c | 44 static int socktype; variable 52 {"socktype",0, arg_integer, &socktype, "socktype", NULL}, 79 hints.ai_socktype = socktype; 97 printf ("\tfamily = %d, socktype = %d, protocol = %d, "
|
/freebsd-9.3-release/contrib/bind9/lib/lwres/ |
H A D | getaddrinfo.c | 157 static int get_local(const char *name, int socktype, struct addrinfo **res); 161 int socktype, int port); 163 int socktype, int port); 179 int family, socktype, flags, protocol; local 198 socktype = hints->ai_socktype; 249 socktype = 0; 262 return (get_local(hostname, socktype, res)); 266 return (get_local(servname, socktype, res)); 284 if (socktype == 0) 294 if (socktype 560 add_ipv4(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument 623 add_ipv6(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument 702 get_local(const char *name, int socktype, struct addrinfo **res) argument [all...] |
/freebsd-9.3-release/contrib/bind9/lib/irs/ |
H A D | getaddrinfo.c | 168 static int get_local(const char *name, int socktype, struct addrinfo **res); 173 struct addrinfo **aip, int socktype, int port); 176 int socktype, int port); 178 int socktype, int port); 197 int family, socktype, flags, protocol; local 217 socktype = hints->ai_socktype; 268 socktype = 0; 281 return (get_local(hostname, socktype, res)); 285 return (get_local(servname, socktype, res)); 303 if (socktype 894 resolve_name(int family, const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument 1116 add_ipv4(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument 1141 add_ipv6(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument 1179 get_local(const char *name, int socktype, struct addrinfo **res) argument [all...] |
/freebsd-9.3-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-9.3-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]); 243 socktype[type]); 246 socktype[type]); 249 socktype[type]); 288 (long)so->so_pcb, socktype[so->so_type], so->so_rcv.sb_cc,
|
/freebsd-9.3-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-9.3-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-9.3-release/contrib/ntp/scripts/lib/NTP/ |
H A D | Util.pm | 76 ($err, $res) = getaddrinfo($host, '', {socktype => SOCK_RAW});
|
/freebsd-9.3-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-9.3-release/sys/rpc/ |
H A D | rpc_generic.c | 470 __rpc_socktype2seman(int socktype) argument 472 switch (socktype) {
|
/freebsd-9.3-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-9.3-release/contrib/bind9/lib/dns/ |
H A D | dispatch.c | 242 isc_sockettype_t socktype; member in struct:dns_dispatch 279 #define DNS_QID(disp) ((disp)->socktype == isc_sockettype_tcp) ? \ 281 #define DISP_ARC4CTX(disp) ((disp)->socktype == isc_sockettype_udp) ? \ 1107 switch (disp->socktype) { 1430 if (disp->socktype != resp->disp->socktype || 1733 switch (disp->socktype) { 2741 disp->socktype = isc_sockettype_tcp; 3084 disp->socktype = isc_sockettype_udp; 3619 if (disp->socktype [all...] |