Home
last modified time | relevance | path

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

12

/freebsd-13.1/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-13.1/usr.bin/netstat/
H A Dnetgraph.c64 static int csock = -1; variable
86 if (csock == -1) in netgraphprotopr()
87 NgMkSockNode(NULL, &csock, NULL); in netgraphprotopr()
128 if (ngpcb.node_id == 0 || csock == -1) in netgraphprotopr()
131 if (NgSendMsg(csock, path, in netgraphprotopr()
134 if (NgRecvMsg(csock, resp, sizeof(rbuf), NULL) < 0) in netgraphprotopr()
/freebsd-13.1/usr.sbin/ngctl/
H A Dmsg.c92 if (NgSendAsciiMsg(csock, path, "%s%s", cmdstr, buf) < 0) { in MsgCmd()
105 FD_SET(csock, &rfds); in MsgCmd()
107 switch (select(csock + 1, &rfds, NULL, NULL, &tv)) { in MsgCmd()
133 if (NgAllocRecvMsg(csock, &m, path) < 0) { in MsgRead()
139 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in MsgRead()
141 || NgAllocRecvMsg(csock, &m2, NULL) < 0) { in MsgRead()
H A Dconfig.c84 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConfigCmd()
87 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConfigCmd()
99 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0 in ConfigCmd()
H A Dmain.c135 int csock, dsock; variable
176 if (NgMkSockNode(name, &csock, &dsock) < 0) in main()
244 const int maxfd = MAX(csock, dsock) + 1; in Monitor()
257 FD_SET(csock, &rfds); in Monitor()
350 const int maxfd = MAX(csock, dsock) + 1; in DoInteractive()
359 FD_SET(csock, &rfds); in DoInteractive()
369 FD_SET(csock, &rfds); in DoInteractive()
404 if (FD_ISSET(csock, rfds)) in ReadSockets()
H A Ddot.c108 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, NGM_LISTNODES, NULL, in DotCmd()
113 if (NgAllocRecvMsg(csock, &nlresp, NULL) < 0) { in DotCmd()
155 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_LISTHOOKS, in DotCmd()
161 if (NgAllocRecvMsg(csock, &hlresp, NULL) < 0) { in DotCmd()
H A Dstatus.c78 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in StatusCmd()
89 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0 in StatusCmd()
H A Dtypes.c75 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in TypesCmd()
80 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in TypesCmd()
H A Dlist.c102 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in ListCmd()
107 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ListCmd()
H A Dshow.c97 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShowCmd()
102 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ShowCmd()
H A Dshutdown.c71 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShutdownCmd()
H A Dname.c74 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in NameCmd()
H A Drmhook.c79 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in RmHookCmd()
H A Dconnect.c83 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConnectCmd()
H A Dmkpeer.c83 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in MkPeerCmd()
H A Dngctl.h77 extern int csock, dsock;
/freebsd-13.1/tests/sys/netinet/
H A Dtcp_connect_port_test.c171 int asock, csock, error, i, lsock; in connect_loop() local
209 csock = socket(domain, SOCK_STREAM, 0); in connect_loop()
210 ATF_REQUIRE_MSG(csock >= 0, in connect_loop()
214 error = connect(csock, &su_srvr.saddr, su_srvr.saddr.sa_len); in connect_loop()
219 error = setsockopt(csock, SOL_SOCKET, SO_LINGER, &lopt, in connect_loop()
227 error = getsockname(csock, &su_clnt.saddr, &salen); in connect_loop()
262 error = close(csock); in connect_loop()
/freebsd-13.1/lib/libnetgraph/
H A Ddebug.c238 int arglen, csock = -1; in _NgDebugMsg() local
259 if (NgMkSockNode(NULL, &csock, NULL) < 0) in _NgDebugMsg()
273 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in _NgDebugMsg()
278 if (NgRecvMsg(csock, req, sizeof(buf), NULL) < 0) { in _NgDebugMsg()
300 if (csock != -1) in _NgDebugMsg()
301 (void)close(csock); in _NgDebugMsg()
/freebsd-13.1/usr.sbin/nghook/
H A Dmain.c81 int csock, dsock; in main() local
153 if (NgMkSockNode(NULL, &csock, &dsock) < 0) in main()
161 if (NgSendMsg(csock, ".", in main()
173 send_msgs(csock, path); in main()
180 send_msgs(csock, path); in main()
/freebsd-13.1/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c116 static int csock, dsock; variable
616 return (NgSendMsg(csock, ".:", in ng_connect_node()
627 return (NgSendMsg(csock, ".:", in ng_connect_id()
643 return (NgSendMsg(csock, path, in ng_connect2_id()
663 return (NgSendMsg(csock, path, in ng_connect2_tee_id()
768 return (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ng_shutdown_id()
781 return (NgSendMsg(csock, ".:", in ng_rmhook()
796 return (NgSendMsg(csock, path, in ng_rmhook_id()
913 if (NgMkSockNode(snmp_nodename, &csock, &dsock) < 0) { in ng_start()
948 (void)close(csock); in ng_fini()
[all …]
/freebsd-13.1/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
H A Dt_asyncio.sh29 export RUMP_SERVER=unix://csock
/freebsd-13.1/contrib/netbsd-tests/lib/librumpclient/
H A Dt_exec.sh29 export RUMP_SERVER=unix://csock

12