Searched refs:csock (Results 1 - 25 of 30) sorted by relevance

12

/freebsd-current/contrib/netbsd-tests/dev/cgd/
H A Dt_cgd.sh46 ${cgdserver} -d key=/dev/dk,hostpath=dk.img,size=1m unix://csock
48 export RUMP_SERVER=unix://csock
61 env RUMP_SERVER=unix://csock rump.halt || true
78 ${cgdserver} -d key=/dev/dk,hostpath=dk.img,size=1m unix://csock
80 export RUMP_SERVER=unix://csock
99 env RUMP_SERVER=unix://csock rump.halt || true
115 ${cgdserver} -d key=/dev/dk,hostpath=dk.img,size=1m unix://csock
117 export RUMP_SERVER=unix://csock
150 env RUMP_SERVER=unix://csock rump.halt || true
/freebsd-current/usr.sbin/ngctl/
H A Dshutdown.c69 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
H A Dmsg.c90 if (NgSendAsciiMsg(csock, path, "%s%s", cmdstr, buf) < 0) {
103 FD_SET(csock, &rfds);
105 switch (select(csock + 1, &rfds, NULL, NULL, &tv)) {
131 if (NgAllocRecvMsg(csock, &m, path) < 0) {
137 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
139 || NgAllocRecvMsg(csock, &m2, NULL) < 0) {
H A Dtypes.c73 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE,
78 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
H A Dstatus.c76 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
87 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
H A Drmhook.c77 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
H A Dconfig.c82 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
85 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
97 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
H A Dconnect.c81 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
H A Dngctl.h75 extern int csock, dsock;
H A Dmkpeer.c81 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
H A Dname.c72 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
H A Dlist.c100 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE,
105 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
H A Ddot.c106 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, NGM_LISTNODES, NULL,
111 if (NgAllocRecvMsg(csock, &nlresp, NULL) < 0) {
153 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_LISTHOOKS,
159 if (NgAllocRecvMsg(csock, &hlresp, NULL) < 0) {
H A Dshow.c95 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
100 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
H A Dmain.c132 int csock, dsock; variable
173 if (NgMkSockNode(name, &csock, &dsock) < 0)
234 * Thread that monitors csock and dsock while main thread
241 const int maxfd = MAX(csock, dsock) + 1;
254 FD_SET(csock, &rfds);
347 const int maxfd = MAX(csock, dsock) + 1;
356 FD_SET(csock, &rfds);
366 FD_SET(csock, &rfds);
401 if (FD_ISSET(csock, rfds))
/freebsd-current/tests/sys/netinet/
H A Dtcp_md5_getsockopt.c55 int csock, ssock, opt; local
92 if ((csock = socket(pf, SOCK_STREAM, 0)) == -1)
95 if (connect(csock, (struct sockaddr *)s, len) == -1)
98 if (getsockopt(csock, IPPROTO_TCP, TCP_MD5SIG, &opt, &len) == -1)
101 close(csock);
H A Dtcp_connect_port_test.c168 int asock, csock, error, i, lsock; local
206 csock = socket(domain, SOCK_STREAM, 0);
207 ATF_REQUIRE_MSG(csock >= 0,
211 error = connect(csock, &su_srvr.saddr, su_srvr.saddr.sa_len);
216 error = setsockopt(csock, SOL_SOCKET, SO_LINGER, &lopt,
224 error = getsockname(csock, &su_clnt.saddr, &salen);
259 error = close(csock);
H A Dip6_v4mapped_test.c222 int csock, error, i, lsock, off = 0; local
270 csock = socket(PF_INET6, SOCK_STREAM, 0);
271 ATF_REQUIRE_MSG(csock >= 0,
274 error = setsockopt(csock, IPPROTO_IPV6, IPV6_V6ONLY, &off,
283 error = bind(csock, &su_clnt.saddr, sizeof(su_clnt.saddr6));
293 error = connect(csock, &su_mapped.saddr, su_mapped.saddr.sa_len);
/freebsd-current/usr.bin/netstat/
H A Dnetgraph.c61 static int csock = -1; variable
83 if (csock == -1)
84 NgMkSockNode(NULL, &csock, NULL);
125 if (ngpcb.node_id == 0 || csock == -1)
128 if (NgSendMsg(csock, path,
131 if (NgRecvMsg(csock, resp, sizeof(rbuf), NULL) < 0)
/freebsd-current/contrib/netbsd-tests/lib/librumphijack/
H A Dt_config.sh29 export RUMP_SERVER=unix://csock
H A Dt_cwd.sh29 export RUMP_SERVER=unix://csock
H A Dt_asyncio.sh29 export RUMP_SERVER=unix://csock
H A Dt_sh.sh36 export RUMP_SERVER=unix://csock
/freebsd-current/usr.sbin/nghook/
H A Dmain.c79 int csock, dsock; local
151 if (NgMkSockNode(NULL, &csock, &dsock) < 0)
159 if (NgSendMsg(csock, ".",
171 send_msgs(csock, path);
178 send_msgs(csock, path);
/freebsd-current/lib/libnetgraph/
H A Ddebug.c231 int arglen, csock = -1; local
252 if (NgMkSockNode(NULL, &csock, NULL) < 0)
266 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
271 if (NgRecvMsg(csock, req, sizeof(buf), NULL) < 0) {
293 if (csock != -1)
294 (void)close(csock);

Completed in 233 milliseconds

12