Home
last modified time | relevance | path

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

12

/freebsd-14.2/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-14.2/usr.bin/netstat/
H A Dnetgraph.c62 static int csock = -1; variable
84 if (csock == -1) in netgraphprotopr()
85 NgMkSockNode(NULL, &csock, NULL); in netgraphprotopr()
126 if (ngpcb.node_id == 0 || csock == -1) in netgraphprotopr()
129 if (NgSendMsg(csock, path, in netgraphprotopr()
132 if (NgRecvMsg(csock, resp, sizeof(rbuf), NULL) < 0) in netgraphprotopr()
/freebsd-14.2/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.c133 int csock, dsock; variable
174 if (NgMkSockNode(name, &csock, &dsock) < 0) in main()
242 const int maxfd = MAX(csock, dsock) + 1; in Monitor()
255 FD_SET(csock, &rfds); in Monitor()
348 const int maxfd = MAX(csock, dsock) + 1; in DoInteractive()
357 FD_SET(csock, &rfds); in DoInteractive()
367 FD_SET(csock, &rfds); in DoInteractive()
402 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 Drmhook.c77 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in RmHookCmd()
H A Dname.c72 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in NameCmd()
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-14.2/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.c169 int asock, csock, error, i, lsock; in connect_loop() local
207 csock = socket(domain, SOCK_STREAM, 0); in connect_loop()
208 ATF_REQUIRE_MSG(csock >= 0, in connect_loop()
212 error = connect(csock, &su_srvr.saddr, su_srvr.saddr.sa_len); in connect_loop()
217 error = setsockopt(csock, SOL_SOCKET, SO_LINGER, &lopt, in connect_loop()
225 error = getsockname(csock, &su_clnt.saddr, &salen); in connect_loop()
260 error = close(csock); in connect_loop()
H A Dip6_v4mapped_test.c223 int csock, error, i, lsock, off = 0; in ATF_TC_BODY() local
271 csock = socket(PF_INET6, SOCK_STREAM, 0); in ATF_TC_BODY()
272 ATF_REQUIRE_MSG(csock >= 0, in ATF_TC_BODY()
275 error = setsockopt(csock, IPPROTO_IPV6, IPV6_V6ONLY, &off, in ATF_TC_BODY()
284 error = bind(csock, &su_clnt.saddr, sizeof(su_clnt.saddr6)); in ATF_TC_BODY()
294 error = connect(csock, &su_mapped.saddr, su_mapped.saddr.sa_len); in ATF_TC_BODY()
/freebsd-14.2/lib/libnetgraph/
H A Ddebug.c232 int arglen, csock = -1; in _NgDebugMsg() local
253 if (NgMkSockNode(NULL, &csock, NULL) < 0) in _NgDebugMsg()
267 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in _NgDebugMsg()
272 if (NgRecvMsg(csock, req, sizeof(buf), NULL) < 0) { in _NgDebugMsg()
294 if (csock != -1) in _NgDebugMsg()
295 (void)close(csock); in _NgDebugMsg()
/freebsd-14.2/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-14.2/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c114 static int csock, dsock; variable
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()
766 return (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ng_shutdown_id()
779 return (NgSendMsg(csock, ".:", in ng_rmhook()
794 return (NgSendMsg(csock, path, in ng_rmhook_id()
911 if (NgMkSockNode(snmp_nodename, &csock, &dsock) < 0) { in ng_start()
946 (void)close(csock); in ng_fini()
[all …]
/freebsd-14.2/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