| /freebsd-13.1/contrib/netbsd-tests/dev/cgd/ |
| H A D | t_cgd.sh | 46 ${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 D | netgraph.c | 64 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 D | msg.c | 92 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 D | config.c | 84 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 D | main.c | 135 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 D | dot.c | 108 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 D | status.c | 78 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in StatusCmd() 89 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0 in StatusCmd()
|
| H A D | types.c | 75 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in TypesCmd() 80 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in TypesCmd()
|
| H A D | list.c | 102 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in ListCmd() 107 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ListCmd()
|
| H A D | show.c | 97 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShowCmd() 102 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ShowCmd()
|
| H A D | shutdown.c | 71 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShutdownCmd()
|
| H A D | name.c | 74 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in NameCmd()
|
| H A D | rmhook.c | 79 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in RmHookCmd()
|
| H A D | connect.c | 83 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConnectCmd()
|
| H A D | mkpeer.c | 83 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in MkPeerCmd()
|
| H A D | ngctl.h | 77 extern int csock, dsock;
|
| /freebsd-13.1/tests/sys/netinet/ |
| H A D | tcp_connect_port_test.c | 171 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 D | debug.c | 238 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 D | main.c | 81 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 D | snmp_netgraph.c | 116 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 D | t_config.sh | 29 export RUMP_SERVER=unix://csock
|
| H A D | t_sh.sh | 36 export RUMP_SERVER=unix://csock
|
| H A D | t_cwd.sh | 29 export RUMP_SERVER=unix://csock
|
| H A D | t_asyncio.sh | 29 export RUMP_SERVER=unix://csock
|
| /freebsd-13.1/contrib/netbsd-tests/lib/librumpclient/ |
| H A D | t_exec.sh | 29 export RUMP_SERVER=unix://csock
|