Home
last modified time | relevance | path

Searched refs:csock (Results 1 – 25 of 32) 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/tests/sys/netinet/
H A Dtcp_md5_getsockopt.c52 int csock, ssock, opt; in test_tcp_md5_getsockopt() local
89 if ((csock = socket(pf, SOCK_STREAM, 0)) == -1) in test_tcp_md5_getsockopt()
92 if (connect(csock, (struct sockaddr *)s, len) == -1) in test_tcp_md5_getsockopt()
95 if (getsockopt(csock, IPPROTO_TCP, TCP_MD5SIG, &opt, &len) == -1) in test_tcp_md5_getsockopt()
98 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/usr.sbin/ngctl/
H A Dmsg.c67 { .fd = csock, .events = POLLIN }, in MsgCmd()
92 if (NgSendAsciiMsg(csock, path, "%s%s", cmdstr, buf) < 0) { in MsgCmd()
125 if (NgAllocRecvMsg(csock, &m, path) < 0) { in MsgRead()
131 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in MsgRead()
133 NgAllocRecvMsg(csock, &m2, NULL) < 0) { in MsgRead()
H A Dconfig.c88 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConfigCmd()
91 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConfigCmd()
103 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0 || in ConfigCmd()
H A Ddot.c105 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, NGM_LISTNODES, NULL, in DotCmd()
110 if (NgAllocRecvMsg(csock, &nlresp, NULL) < 0) { in DotCmd()
152 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_LISTHOOKS, in DotCmd()
158 if (NgAllocRecvMsg(csock, &hlresp, NULL) < 0) { in DotCmd()
H A Dstatus.c75 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in StatusCmd()
86 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0 || in StatusCmd()
H A Dtypes.c72 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in TypesCmd()
77 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in TypesCmd()
H A Dlist.c99 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in ListCmd()
104 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ListCmd()
H A Dshow.c94 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShowCmd()
99 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ShowCmd()
H A Dmain.c136 int csock, dsock; variable
203 if (NgMkSockNode(name, &csock, &dsock) < 0) in main()
277 { .fd = csock, .events = POLLIN }, in Monitor()
383 { .fd = csock, .events = POLLIN }, in DoInteractive()
H A Dshutdown.c68 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShutdownCmd()
H A Drmhook.c76 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in RmHookCmd()
H A Dname.c71 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in NameCmd()
H A Dmkpeer.c80 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in MkPeerCmd()
H A Dconnect.c80 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConnectCmd()
H A Dngctl.h75 extern int csock, dsock;
/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