Searched refs:csock (Results 1 - 18 of 18) sorted by relevance

/freebsd-9.3-release/usr.sbin/ngctl/
H A Dshutdown.c71 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
H A Dmsg.c92 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 Dstatus.c78 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
89 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
H A Dtypes.c75 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE,
80 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
H A Drmhook.c79 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
H A Dconfig.c84 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 Dconnect.c83 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
H A Dmkpeer.c83 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
H A Dname.c74 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
H A Dngctl.h77 extern int csock, dsock;
H A Dlist.c102 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE,
107 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
H A Ddot.c101 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 Dshow.c97 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
102 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
H A Dmain.c135 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 Dnetgraph.c62 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 Dmain.c81 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 Ddebug.c225 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 Dsnmp_netgraph.c76 /* 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...]

Completed in 84 milliseconds