HomeSort by: relevance | last modified time | path
    Searched refs:sock (Results 1 - 25 of 143) sorted by relevancy

1 2 3 4 5 6

  /src/sys/external/bsd/libnv/dist/
msgio.h 45 int cred_send(int sock);
46 int cred_recv(int sock, struct cmsgcred *cred);
48 int fd_send(int sock, const int *fds, size_t nfds);
49 int fd_recv(int sock, int *fds, size_t nfds);
51 int buf_send(int sock, void *buf, size_t size);
52 int buf_recv(int sock, void *buf, size_t size);
msgio.c 133 msg_recv(int sock, struct msghdr *msg)
137 PJDLOG_ASSERT(sock >= 0);
146 fd_wait(sock, true);
147 if (recvmsg(sock, msg, flags) == -1) {
159 msg_send(int sock, const struct msghdr *msg)
162 PJDLOG_ASSERT(sock >= 0);
165 fd_wait(sock, false);
166 if (sendmsg(sock, msg, 0) == -1) {
179 cred_send(int sock)
212 if (msg_send(sock, &msg) == -1
    [all...]
  /src/regress/sys/net/frag/
ip4_frag_1.c 156 test_case_0(int sock, in_addr_t target)
166 send_packet(sock, p, target);
169 send_packet(sock, p, target);
173 test_case_1(int sock, in_addr_t target)
185 send_packet(sock, p, target);
189 send_packet(sock, p, target);
193 test_case_2(int sock, in_addr_t target)
206 send_packet(sock, p, target);
209 send_packet(sock, p, target);
213 test_case_3(int sock, in_addr_t target
305 int sock; local in function:main
    [all...]
  /src/sbin/mount_nfs/
udp_xfer.c 68 int sock; local in function:sendudp
76 sock = socket(d->ai->ai_family, SOCK_DGRAM, IPPROTO_UDP);
77 if (sock < 0)
79 d->socket = sock;
82 setsockopt(sock, IPPROTO_IP, IP_PORTRANGE, &range, sizeof(range));
84 if (connect(sock, d->ai->ai_addr, d->ai->ai_addrlen) != 0)
87 return send(sock, pkt, len, 0);
  /src/tests/lib/libc/sys/
t_bind.c 62 int sock = socket(AF_LOCAL, SOCK_STREAM, 0); local in function:ATF_TC_BODY
63 ATF_REQUIRE(sock != -1);
66 ATF_REQUIRE(-1 == bind(sock, (struct sockaddr *)&addr, sizeof(addr)));
69 close(sock);
  /src/usr.sbin/wg-userspace/
wg-userspace.sh 40 sock=/var/run/wg_rump.${ifid}.sock
41 export RUMP_SERVER=unix://$sock
45 rump_server $RUMPLIBS unix://$sock
  /src/sbin/canconfig/
canconfig.c 127 int sock, ch; local in function:main
149 sock = socket(AF_CAN, SOCK_RAW, CAN_RAW);
150 if (sock < 0)
153 printall(sock);
160 sock = socket(AF_CAN, SOCK_RAW, CAN_RAW);
161 if (sock < 0)
166 if (is_can(sock, canifname) == 0)
171 if (ioctl(sock, SIOCGIFFLAGS, &g_ifr) < 0)
178 status(sock, canifname);
182 if (do_cmd(sock, canifname, CANGLINKTIMECAP, &g_cltc, sizeof(g_cltc), 0
    [all...]
  /src/tests/net/ipsec/
common.sh 32 local sock=$1
34 export RUMP_SERVER=$sock
44 local sock=$1
48 export RUMP_SERVER=$sock
61 local sock=$1
65 export RUMP_SERVER=$sock
  /src/tests/net/
net_common.sh 110 local sock=$1
114 export RUMP_SERVER=$sock
138 local sock=$1
146 export RUMP_SERVER=$sock
200 local sock=$1
205 atf_check -s exit:0 rump_server "$@" "$sock"
209 export RUMP_SERVER=$sock
219 export RUMP_SERVER=$sock
227 echo $sock >> $_rump_server_socks
233 local sock=$
    [all...]
  /src/usr.sbin/bthcid/
hci.c 122 process_hci(int sock, short ev, void *arg)
131 n = recvfrom(sock, buffer, sizeof(buffer), 0,
150 process_pin_code_request_event(sock, &addr,
155 process_link_key_request_event(sock, &addr,
160 process_link_key_notification_event(sock, &addr,
175 process_pin_code_request_event(int sock, struct sockaddr_bt *addr,
187 return send_pin_code_reply(sock, addr, bdaddr, pin);
189 if (send_client_request(&addr->bt_bdaddr, bdaddr, sock) == 0)
190 return send_pin_code_reply(sock, addr, bdaddr, NULL);
197 process_link_key_request_event(int sock, struct sockaddr_bt *addr
    [all...]
  /src/sbin/brconfig/
brconfig.c 167 int sock, ch; local in function:main
172 sock = socket(AF_INET, SOCK_DGRAM, 0);
173 if (sock < 0)
193 printall(sock);
207 if (ioctl(sock, SIOCGIFFLAGS, &g_ifr) < 0)
214 status(sock, bridge);
234 (*cmd->cmd_func)(cmd, sock, bridge, argv);
241 if (g_ifr_updated && ioctl(sock, SIOCSIFFLAGS, &g_ifr) < 0)
326 printall(int sock)
340 status(sock, ifa->ifa_name)
    [all...]
  /src/share/doc/psd/20.ipctut/
streamread.c 48 int sock, length;
56 sock = socket(AF_INET, SOCK_STREAM, 0);
57 if (sock < 0) {
65 if (bind(sock, &server, sizeof(server))) {
71 if (getsockname(sock, &server, &length)) {
78 listen(sock, 5);
80 msgsock = accept(sock, 0, 0);
96 * Since this program has an infinite loop, the socket "sock" is
  /src/sys/arch/i386/stand/pxeboot/
dev_net.c 61 static int net_getparams(int sock);
152 int bootp(int sock);
156 net_getparams(int sock)
166 bootp(sock);
  /src/tests/net/icmp/
t_ping2.sh 41 sock=${1}
45 env RUMP_SERVER=${sock} rump.ifconfig shmif0 create
47 env RUMP_SERVER=${sock} rump.ifconfig shmif0 linkstr bus
49 env RUMP_SERVER=${sock} rump.ifconfig shmif0 inet ${addr}
  /src/usr.sbin/mopd/common/
pf-linux2.c 172 int sock; local in function:pfAddMulti
184 if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
188 if (ioctl(sock, SIOCADDMULTI, (caddr_t)&ifr) < 0) {
190 close(sock);
193 close(sock);
206 int sock; local in function:pfDelMulti
218 if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
222 if (ioctl(sock, SIOCDELMULTI, (caddr_t)&ifr) < 0) {
224 close(sock);
227 close(sock);
    [all...]
  /src/dist/pf/sbin/pflogd/
privsep_fdpass.c 51 send_fd(int sock, int fd)
79 if ((n = sendmsg(sock, &msg, 0)) == -1)
80 warn("%s: sendmsg(%d)", __func__, sock);
87 receive_fd(int sock)
105 if ((n = recvmsg(sock, &msg, 0)) == -1)
  /src/sys/arch/arm/xscale/
pxa2x0_pcic.c 401 struct pxapcic_socket *sock; local in function:pxapcic_doattach
417 sock = &sc->sc_socket[s[i]];
422 cs = (*sock->pcictag->read)(sock, PXAPCIC_CARD_STATUS);
424 pxapcic_attach_card(sock);
427 sock, &sock->event_thread, "%s,%d",
428 device_xname(sc->sc_dev), sock->socket)) {
431 sock->socket);
453 struct pxapcic_socket *sock = (struct pxapcic_socket *)arg local in function:pxapcic_event_thread
    [all...]
  /src/sys/arch/i386/stand/efiboot/
dev_net.c 44 * RPC/mountd - nfs_mount(sock, ip, path)
172 net_getparams(int sock)
185 bootp(sock);
198 if (rarp_getipaddress(sock)) {
208 if (bp_whoami(sock)) {
223 if (bp_getfile(sock, "gateway", &gateip, buf)) {
243 if (bp_getfile(sock, "root", &rootip, rootpath)) {
  /src/sys/lib/libsa/
dev_net.c 44 * RPC/mountd - nfs_mount(sock, ip, path)
200 net_getparams(int sock)
213 bootp(sock);
226 if (rarp_getipaddress(sock)) {
236 if (bp_whoami(sock)) {
251 if (bp_getfile(sock, "gateway", &gateip, buf)) {
271 if (bp_getfile(sock, "root", &rootip, rootpath)) {
  /src/libexec/httpd/
daemon-bozo.c 151 httpd->sock = bozomalloc(httpd, httpd->nsock * sizeof(*httpd->sock));
154 httpd->sock[i] = socket(r->ai_family, SOCK_STREAM, 0);
155 if (httpd->sock[i] == -1)
157 if (setsockopt(httpd->sock[i], SOL_SOCKET, SO_REUSEADDR, &on,
161 if (bind(httpd->sock[i], r->ai_addr, r->ai_addrlen) == -1)
163 if (listen(httpd->sock[i], SOMAXCONN) == -1)
167 httpd->fds[i].fd = httpd->sock[i];
196 close(httpd->sock[i]);
221 close(httpd->sock[idx])
    [all...]
  /src/sys/arch/ia64/stand/common/
dev_net.c 49 * RPC/mountd - nfs_mount(sock, ip, path)
74 static int net_getparams(int sock);
196 net_getparams(int sock)
214 bootp(sock);
225 if (rarp_getipaddress(sock)) {
232 if (bp_whoami(sock)) {
244 if (bp_getfile(sock, "gateway", &gateip, buf) == 0) {
258 if (bp_getfile(sock, "root", &rootip, rootpath)) {
288 d = socktodesc(sock);
  /src/usr.sbin/timed/timedc/
cmds.c 60 static int sock; variable in typeref:typename:int
136 if (connect(sock, (const struct sockaddr *)addr,
142 set[0].fd = sock;
150 ret = send(sock, &sec, sizeof(sec), 0);
153 warn("send(sock)");
155 warnx("send(sock): incomplete");
173 ret = recv(sock, &sec, sizeof(sec), 0);
328 set[0].fd = sock;
339 if (connect(sock, (const struct sockaddr *)&dest,
349 if (send(sock, &msg, sizeof(msg), 0) < 0)
    [all...]
  /src/sys/arch/hpcmips/stand/lcboot/
dev_net.c 98 int sock; local in function:net_close
100 sock = *((int *) f->f_devdata);
101 netif_close(sock);
  /src/tests/rump/rumpnet/
t_shmif.sh 40 export RUMP_SERVER=unix://sock${1}
59 export RUMP_SERVER=unix://sock${x}
72 for x in `jot ${NKERN}` ; do RUMP_SERVER=unix://sock${x} rump.halt ;done
  /src/sys/arch/alpha/stand/netboot/
dev_net.c 40 * RPC/mountd - nfs_mount(sock, ip, path)
178 net_getparams(int sock)
189 if (rarp_getipaddress(sock)) {
199 bootp(sock);
210 if (bp_whoami(sock)) {
224 if (bp_getfile(sock, "root", &rootip, rootpath)) {

Completed in 72 milliseconds

1 2 3 4 5 6