| /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/tests/sys/netinet/ |
| H A D | tcp_md5_getsockopt.c | 52 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 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/usr.sbin/ngctl/ |
| H A D | msg.c | 67 { .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 D | config.c | 88 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 D | dot.c | 105 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 D | status.c | 75 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in StatusCmd() 86 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0 || in StatusCmd()
|
| H A D | types.c | 72 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in TypesCmd() 77 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in TypesCmd()
|
| H A D | list.c | 99 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, in ListCmd() 104 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ListCmd()
|
| H A D | show.c | 94 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShowCmd() 99 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) { in ShowCmd()
|
| H A D | main.c | 136 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 D | shutdown.c | 68 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ShutdownCmd()
|
| H A D | rmhook.c | 76 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in RmHookCmd()
|
| H A D | name.c | 71 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in NameCmd()
|
| H A D | mkpeer.c | 80 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in MkPeerCmd()
|
| H A D | connect.c | 80 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, in ConnectCmd()
|
| H A D | ngctl.h | 75 extern int csock, dsock;
|
| /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
|