/freebsd-9.3-release/usr.sbin/ngctl/ |
H A D | shutdown.c | 71 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
|
H A D | msg.c | 92 if (NgSendAsciiMsg(csock, path, "%s%s", cmdstr, buf) < 0) { 105 FD_SET(csock, &rfds); 107 switch (select(csock + 1, &rfds, NULL, NULL, &tv)) { 133 if (NgAllocRecvMsg(csock, &m, path) < 0) { 139 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 141 || NgAllocRecvMsg(csock, &m2, NULL) < 0) {
|
H A D | status.c | 78 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 89 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
|
H A D | types.c | 75 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, 80 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
|
H A D | rmhook.c | 79 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
|
H A D | config.c | 84 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 87 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 99 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
|
H A D | connect.c | 83 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
|
H A D | mkpeer.c | 83 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
|
H A D | name.c | 74 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
|
H A D | ngctl.h | 77 extern int csock, dsock;
|
H A D | list.c | 102 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, 107 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
|
H A D | dot.c | 101 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, NGM_LISTNODES, NULL, 106 if (NgAllocRecvMsg(csock, &nlresp, NULL) < 0) { 143 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_LISTHOOKS, 149 if (NgAllocRecvMsg(csock, &hlresp, NULL) < 0) {
|
H A D | show.c | 97 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 102 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
|
H A D | main.c | 135 int csock, dsock; variable 176 if (NgMkSockNode(name, &csock, &dsock) < 0) 237 * Thread that monitors csock and dsock while main thread 244 const int maxfd = MAX(csock, dsock) + 1; 257 FD_SET(csock, &rfds); 348 const int maxfd = MAX(csock, dsock) + 1; 357 FD_SET(csock, &rfds); 367 FD_SET(csock, &rfds); 402 if (FD_ISSET(csock, rfds))
|
/freebsd-9.3-release/usr.bin/netstat/ |
H A D | netgraph.c | 62 static int csock = -1; variable 129 if (csock == -1) 130 NgMkSockNode(NULL, &csock, NULL); 174 if (info.node_id == 0 || csock == -1) 177 if (NgSendMsg(csock, path, 180 if (NgRecvMsg(csock, resp, sizeof(rbuf), NULL) < 0)
|
/freebsd-9.3-release/usr.sbin/nghook/ |
H A D | main.c | 81 int csock, dsock; local 153 if (NgMkSockNode(NULL, &csock, &dsock) < 0) 161 if (NgSendMsg(csock, ".", 173 send_msgs(csock, path); 180 send_msgs(csock, path);
|
/freebsd-9.3-release/lib/libnetgraph/ |
H A D | debug.c | 225 int arglen, csock = -1; local 246 if (NgMkSockNode(NULL, &csock, NULL) < 0) 260 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 265 if (NgRecvMsg(csock, req, sizeof(buf), NULL) < 0) { 287 if (csock != -1) 288 (void)close(csock);
|
/freebsd-9.3-release/usr.sbin/bsnmpd/modules/snmp_netgraph/ |
H A D | snmp_netgraph.c | 76 /* Csock buffers. Communication on the csock is asynchronuous. This means 116 static int csock, dsock; variable 280 if ((ret = NgRecvMsg(csock, mesg, resbufsiz + 1, path)) < 0) { 288 syslog(LOG_WARNING, "read from csock: %m"); 325 return (NgSendMsg(csock, path, (int)cookie, (int)opcode, arg, arglen)); 349 * Execute a synchronuous dialog with the csock. All message we receive, that 386 if (setsockopt(csock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) 408 if (setsockopt(csock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) 616 return (NgSendMsg(csock, ".:", 627 return (NgSendMsg(csock, " [all...] |