/freebsd/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/usr.bin/netstat/ |
H A D | netgraph.c | 60 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 D | msg.c | 90 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 D | config.c | 82 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 D | main.c | 132 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 D | dot.c | 106 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 D | status.c | 76 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in StatusCmd() 87 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0 in StatusCmd()
|
H A D | types.c | 73 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in TypesCmd() 78 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in TypesCmd()
|
H A D | list.c | 100 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in ListCmd() 105 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ListCmd()
|
H A D | show.c | 95 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShowCmd() 100 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ShowCmd()
|
H A D | shutdown.c | 69 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShutdownCmd()
|
H A D | name.c | 72 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in NameCmd()
|
H A D | rmhook.c | 77 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in RmHookCmd()
|
H A D | connect.c | 81 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConnectCmd()
|
H A D | mkpeer.c | 81 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in MkPeerCmd()
|
H A D | ngctl.h | 75 extern int csock, dsock;
|
/freebsd/tests/sys/netinet/ |
H A D | tcp_md5_getsockopt.c | 55 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 D | tcp_connect_port_test.c | 168 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 D | ip6_v4mapped_test.c | 222 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 D | debug.c | 231 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 D | main.c | 79 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 D | snmp_netgraph.c | 114 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 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
|