Home
last modified time | relevance | path

Searched refs:sockets (Results 1 – 25 of 233) sorted by relevance

12345678910

/freebsd/share/doc/psd/20.ipctut/
H A Dsocketpair.c44 int sockets[2], child;
47 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) {
55 close(sockets[0]);
56 if (read(sockets[1], buf, 1024, 0) < 0)
59 if (write(sockets[1], DATA2, sizeof(DATA2)) < 0)
61 close(sockets[1]);
63 close(sockets[1]);
64 if (write(sockets[0], DATA1, sizeof(DATA1)) < 0)
66 if (read(sockets[0], buf, 1024, 0) < 0)
69 close(sockets[0]);
H A Dpipe.c42 int sockets[2], child;
45 if (pipe(sockets) < 0) {
56 close(sockets[1]);
57 if (read(sockets[0], buf, 1024) < 0)
60 close(sockets[0]);
63 close(sockets[0]);
64 if (write(sockets[1], DATA, sizeof(DATA)) < 0)
66 close(sockets[1]);
/freebsd/tests/sys/kern/
H A Dktls_test.c1182 int kq, sockets[2]; in test_ktls_transmit_app_data() local
1195 ATF_REQUIRE_MSG(open_sockets(tc, sockets), "failed to create sockets"); in test_ktls_transmit_app_data()
1197 ATF_REQUIRE(setsockopt(sockets[1], IPPROTO_TCP, TCP_TXTLS_ENABLE, en, in test_ktls_transmit_app_data()
1199 check_tls_mode(tc, sockets[1], TCP_TXTLS_MODE); in test_ktls_transmit_app_data()
1201 EV_SET(&ev, sockets[0], EVFILT_READ, EV_ADD, 0, 0, NULL); in test_ktls_transmit_app_data()
1203 EV_SET(&ev, sockets[1], EVFILT_WRITE, EV_ADD, 0, 0, NULL); in test_ktls_transmit_app_data()
1294 close_sockets(sockets); in test_ktls_transmit_app_data()
1332 int sockets[2]; in test_ktls_transmit_control() local
1343 ATF_REQUIRE_MSG(open_sockets(tc, sockets), "faile in test_ktls_transmit_control()
1392 int sockets[2]; test_ktls_transmit_empty_fragment() local
1501 int kq, sockets[2]; test_ktls_receive_app_data() local
1621 int sockets[2]; test_ktls_receive_corrupted_record() local
1710 int sockets[2]; test_ktls_receive_truncated_record() local
1751 int sockets[2]; test_ktls_receive_bad_major() local
1793 int sockets[2]; test_ktls_receive_bad_minor() local
1835 int sockets[2]; test_ktls_receive_bad_type() local
1878 int sockets[2]; test_ktls_receive_bad_size() local
2163 int sockets[2]; test_ktls_invalid_transmit_cipher_suite() local
2659 int sockets[2]; test_ktls_invalid_receive_cipher_suite() local
2698 int sockets[2]; test_ktls_unsupported_receive_cipher_suite() local
[all...]
/freebsd/crypto/openssh/regress/misc/fuzz-harness/
H A Dagent_fuzz_helper.c126 if (sockets[i].type != AUTH_UNUSED) in cleanup_sockettab()
127 close_socket(sockets + i); in cleanup_sockettab()
129 free(sockets); in cleanup_sockettab()
130 sockets = NULL; in cleanup_sockettab()
145 assert(sockets[0].type == AUTH_CONNECTION); in reset_sockettab()
146 assert(sockets[0].fd == fd); in reset_sockettab()
167 (void)sshbuf_put(sockets[0].input, s, slen); in test_one()
169 olen = sshbuf_len(sockets[0].input); in test_one()
171 nlen = sshbuf_len(sockets[0].input); in test_one()
/freebsd/contrib/libder/tests/
H A Dfuzz_stream.c55 int sockets[2]; in fuzz_fd() local
60 &sockets[0]); in fuzz_fd()
66 sdata.socket = sockets[1]; in fuzz_fd()
70 close(sockets[0]); in fuzz_fd()
71 close(sockets[1]); in fuzz_fd()
76 close(sockets[0]); in fuzz_fd()
80 close(sockets[1]); in fuzz_fd()
90 obj = libder_read_fd(ctx, sockets[0], &readsz); in fuzz_fd()
105 close(sockets[0]); in fuzz_fd()
/freebsd/lib/libifconfig/
H A Dlibifconfig_internal.c87 if (h->sockets[addressfamily] != -1) { in ifconfig_socket()
88 *s = h->sockets[addressfamily]; in ifconfig_socket()
93 h->sockets[addressfamily] = socket(addressfamily, SOCK_DGRAM, 0); in ifconfig_socket()
94 if (h->sockets[addressfamily] == -1) { in ifconfig_socket()
100 *s = h->sockets[addressfamily]; in ifconfig_socket()
/freebsd/tests/sys/common/
H A Dnet_receiver.py56 sockets = []
65 sockets.append(s)
66 inputs = sockets
86 sockets = []
94 sockets.append(s)
95 inputs = sockets
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Ddeps13 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
24 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
35 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
46 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
57 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
69 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
81 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
93 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
105 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
116 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
[all …]
/freebsd/crypto/krb5/src/lib/crypto/krb/
H A Ddeps12 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
23 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
33 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
44 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
55 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
66 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
77 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
88 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
99 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
110 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
[all …]
/freebsd/stand/libsa/
H A Dnetif.c56 static socket_list_t sockets = TAILQ_HEAD_INITIALIZER(sockets); variable
281 TAILQ_FOREACH(s, &sockets, io_link) { in socktodesc_impl()
326 last = TAILQ_LAST(&sockets, socket_list); in netif_open()
329 TAILQ_INSERT_TAIL(&sockets, s, io_link); in netif_open()
369 TAILQ_FOREACH_REVERSE_SAFE(last, &sockets, socket_list, io_link, s) { in netif_close()
372 TAILQ_REMOVE(&sockets, last, io_link); in netif_close()
/freebsd/crypto/krb5/src/lib/krb5/ccache/
H A Ddeps14 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
24 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
35 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
47 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
58 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
69 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
80 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
92 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
103 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
114 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
[all …]
/freebsd/crypto/krb5/src/lib/krb5/os/
H A Ddeps14 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
24 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
35 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
47 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
60 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
71 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
82 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
93 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
105 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
116 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
[all …]
/freebsd/crypto/krb5/src/lib/crypto/crypto_tests/
H A Ddeps13 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
24 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
34 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
44 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
55 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
66 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
76 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
87 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
98 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
109 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
[all …]
/freebsd/crypto/openssh/
H A Dssh-agent.c140 SocketEntry *sockets = NULL; variable
1842 e = &sockets[socknum]; in process_message()
1949 if (sockets[i].type == AUTH_UNUSED) { in new_socket()
1950 sockets[i].fd = fd; in new_socket()
1951 if ((sockets[i].input = sshbuf_new()) == NULL || in new_socket()
1952 (sockets[i].output = sshbuf_new()) == NULL || in new_socket()
1953 (sockets[i].request = sshbuf_new()) == NULL) in new_socket()
1955 sockets[i].type = type; in new_socket()
1960 sockets = xrecallocarray(sockets, old_alloc, new_alloc, in new_socket()
1961 sizeof(sockets[0])); in new_socket()
[all …]
/freebsd/sys/amd64/vmm/
H A Dx86.c91 uint16_t cores, maxcpus, sockets, threads; in x86_emulate_cpuid() local
146 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
244 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
263 logical_cpus = sockets * threads * cores; in x86_emulate_cpuid()
292 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
392 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
404 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
494 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
/freebsd/crypto/krb5/src/lib/crypto/builtin/des/
H A Ddeps13 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
24 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
35 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
46 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
57 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
68 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
79 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
90 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
102 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
113 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
[all …]
/freebsd/crypto/krb5/src/lib/krad/
H A Ddeps13 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
25 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
37 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
48 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
59 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
71 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
82 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
95 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
107 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
118 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
[all …]
/freebsd/crypto/heimdal/kpasswd/
H A Dkpasswdd.c654 int *sockets; in doit() local
676 sockets = malloc (n * sizeof(*sockets)); in doit()
677 if (sockets == NULL) in doit()
686 sockets[i] = socket (sa->sa_family, SOCK_DGRAM, 0); in doit()
687 if (sockets[i] < 0) in doit()
689 if (bind (sockets[i], sa, sa_size) < 0) { in doit()
700 maxfd = max (maxfd, sockets[i]); in doit()
703 FD_SET(sockets[i], &real_fdset); in doit()
720 if (FD_ISSET(sockets[i], &fdset)) { in doit()
724 retx = recvfrom(sockets[i], buf, sizeof(buf), 0, in doit()
[all …]
/freebsd/sys/dev/vmm/
H A Dvmm_vm.c353 vm_get_topology(struct vm *vm, uint16_t *sockets, uint16_t *cores, in vm_get_topology() argument
356 *sockets = vm->sockets; in vm_get_topology()
363 vm_set_topology(struct vm *vm, uint16_t sockets, uint16_t cores, in vm_set_topology() argument
367 if (sockets * cores * threads > vm->maxcpus) in vm_set_topology()
369 vm->sockets = sockets; in vm_set_topology()
/freebsd/crypto/krb5/src/lib/krb5/keytab/
H A Ddeps12 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
22 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
34 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
45 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
56 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
68 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
79 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
90 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
101 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
112 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
/freebsd/sys/netgraph/bluetooth/socket/
H A Dng_btsocket.c190 SYSCTL_NODE(_net_bluetooth_hci, OID_AUTO, sockets,
193 SYSCTL_NODE(_net_bluetooth_l2cap, OID_AUTO, sockets,
196 SYSCTL_NODE(_net_bluetooth_rfcomm, OID_AUTO, sockets,
199 SYSCTL_NODE(_net_bluetooth_sco, OID_AUTO, sockets,
/freebsd/crypto/krb5/src/lib/gssapi/krb5/
H A Ddeps16 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
32 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
47 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
62 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
77 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
92 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
107 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
122 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
138 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
153 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
[all …]
/freebsd/crypto/krb5/src/lib/krb5/rcache/
H A Ddeps14 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
25 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
35 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
46 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
56 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
68 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
79 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
/freebsd/crypto/krb5/src/plugins/preauth/spake/
H A Ddeps12 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
24 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
35 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
47 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
60 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
72 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
84 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
/freebsd/crypto/krb5/src/clients/ksu/
H A Ddeps13 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
25 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
36 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
47 $(top_srcdir)/include/krb5/plugin.h $(top_srcdir)/include/port-sockets.h \
58 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
69 $(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \

12345678910