Home
last modified time | relevance | path

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

12

/freebsd/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/usr.bin/netstat/
H A Dnetgraph.c60 static int csock = -1; variable
82 if (csock == -1) in netgraphprotopr()
83 NgMkSockNode(NULL, &csock, NULL); in netgraphprotopr()
124 if (ngpcb.node_id == 0 || csock == -1) in netgraphprotopr()
127 if (NgSendMsg(csock, path, in netgraphprotopr()
130 if (NgRecvMsg(csock, resp, sizeof(rbuf), NULL) < 0) in netgraphprotopr()
/freebsd/usr.sbin/ngctl/
H A Dmsg.c90 if (NgSendAsciiMsg(csock, path, "%s%s", cmdstr, buf) < 0) { in MsgCmd()
103 FD_SET(csock, &rfds); in MsgCmd()
105 switch (select(csock + 1, &rfds, NULL, NULL, &tv)) { in MsgCmd()
131 if (NgAllocRecvMsg(csock, &m, path) < 0) { in MsgRead()
137 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in MsgRead()
139 || NgAllocRecvMsg(csock, &m2, NULL) < 0) { in MsgRead()
H A Dconfig.c82 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConfigCmd()
85 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConfigCmd()
97 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0 in ConfigCmd()
H A Dmain.c132 int csock, dsock; variable
173 if (NgMkSockNode(name, &csock, &dsock) < 0) in main()
241 const int maxfd = MAX(csock, dsock) + 1; in Monitor()
254 FD_SET(csock, &rfds); in Monitor()
347 const int maxfd = MAX(csock, dsock) + 1; in DoInteractive()
356 FD_SET(csock, &rfds); in DoInteractive()
366 FD_SET(csock, &rfds); in DoInteractive()
401 if (FD_ISSET(csock, rfds)) in ReadSockets()
H A Ddot.c106 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, NGM_LISTNODES, NULL, in DotCmd()
111 if (NgAllocRecvMsg(csock, &nlresp, NULL) < 0) { in DotCmd()
153 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_LISTHOOKS, in DotCmd()
159 if (NgAllocRecvMsg(csock, &hlresp, NULL) < 0) { in DotCmd()
H A Dstatus.c76 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in StatusCmd()
87 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0 in StatusCmd()
H A Dtypes.c73 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in TypesCmd()
78 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in TypesCmd()
H A Dlist.c100 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in ListCmd()
105 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ListCmd()
H A Dshow.c95 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShowCmd()
100 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ShowCmd()
H A Dshutdown.c69 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShutdownCmd()
H A Dname.c72 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in NameCmd()
H A Drmhook.c77 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in RmHookCmd()
H A Dconnect.c81 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConnectCmd()
H A Dmkpeer.c81 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in MkPeerCmd()
H A Dngctl.h75 extern int csock, dsock;
/freebsd/tests/sys/netinet/
H A Dtcp_md5_getsockopt.c55 int csock, ssock, opt; in test_tcp_md5_getsockopt() local
92 if ((csock = socket(pf, SOCK_STREAM, 0)) == -1) in test_tcp_md5_getsockopt()
95 if (connect(csock, (struct sockaddr *)s, len) == -1) in test_tcp_md5_getsockopt()
98 if (getsockopt(csock, IPPROTO_TCP, TCP_MD5SIG, &opt, &len) == -1) in test_tcp_md5_getsockopt()
101 close(csock); in test_tcp_md5_getsockopt()
H A Dtcp_connect_port_test.c168 int asock, csock, error, i, lsock; in connect_loop() local
206 csock = socket(domain, SOCK_STREAM, 0); in connect_loop()
207 ATF_REQUIRE_MSG(csock >= 0, in connect_loop()
211 error = connect(csock, &su_srvr.saddr, su_srvr.saddr.sa_len); in connect_loop()
216 error = setsockopt(csock, SOL_SOCKET, SO_LINGER, &lopt, in connect_loop()
224 error = getsockname(csock, &su_clnt.saddr, &salen); in connect_loop()
259 error = close(csock); in connect_loop()
H A Dip6_v4mapped_test.c222 int csock, error, i, lsock, off = 0; in ATF_TC_BODY() local
270 csock = socket(PF_INET6, SOCK_STREAM, 0); in ATF_TC_BODY()
271 ATF_REQUIRE_MSG(csock >= 0, in ATF_TC_BODY()
274 error = setsockopt(csock, IPPROTO_IPV6, IPV6_V6ONLY, &off, in ATF_TC_BODY()
283 error = bind(csock, &su_clnt.saddr, sizeof(su_clnt.saddr6)); in ATF_TC_BODY()
293 error = connect(csock, &su_mapped.saddr, su_mapped.saddr.sa_len); in ATF_TC_BODY()
/freebsd/lib/libnetgraph/
H A Ddebug.c231 int arglen, csock = -1; in _NgDebugMsg() local
252 if (NgMkSockNode(NULL, &csock, NULL) < 0) in _NgDebugMsg()
266 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in _NgDebugMsg()
271 if (NgRecvMsg(csock, req, sizeof(buf), NULL) < 0) { in _NgDebugMsg()
293 if (csock != -1) in _NgDebugMsg()
294 (void)close(csock); in _NgDebugMsg()
/freebsd/usr.sbin/nghook/
H A Dmain.c79 int csock, dsock; in main() local
151 if (NgMkSockNode(NULL, &csock, &dsock) < 0) in main()
159 if (NgSendMsg(csock, ".", in main()
171 send_msgs(csock, path); in main()
178 send_msgs(csock, path); in main()
/freebsd/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c114 static int csock, dsock; variable
278 if ((ret = NgRecvMsg(csock, mesg, resbufsiz + 1, path)) < 0) { in csock_read()
323 return (NgSendMsg(csock, path, (int)cookie, (int)opcode, arg, arglen)); in ng_output()
384 if (setsockopt(csock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) in ng_dialog()
406 if (setsockopt(csock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) in ng_dialog()
614 return (NgSendMsg(csock, ".:", in ng_connect_node()
625 return (NgSendMsg(csock, ".:", in ng_connect_id()
641 return (NgSendMsg(csock, path, in ng_connect2_id()
661 return (NgSendMsg(csock, path, in ng_connect2_tee_id()
740 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_MKPEER, in ng_mkpeer_id()
[all …]
/freebsd/contrib/netbsd-tests/lib/librumphijack/
H A Dt_config.sh29 export RUMP_SERVER=unix://csock
H A Dt_sh.sh36 export RUMP_SERVER=unix://csock
H A Dt_cwd.sh29 export RUMP_SERVER=unix://csock

12