Searched refs:dsock (Results 1 - 5 of 5) sorted by relevance

/freebsd-current/usr.sbin/ngctl/
H A Dngctl.h75 extern int csock, dsock;
H A Dmain.c132 int csock, dsock; variable
173 if (NgMkSockNode(name, &csock, &dsock) < 0)
234 * Thread that monitors csock and dsock while main thread
241 const int maxfd = MAX(csock, dsock) + 1;
255 FD_SET(dsock, &rfds);
347 const int maxfd = MAX(csock, dsock) + 1;
357 FD_SET(dsock, &rfds);
367 FD_SET(dsock, &rfds);
405 if (FD_ISSET(dsock, rfds)) {
411 if ((rl = NgAllocRecvData(dsock,
[all...]
H A Dwrite.c110 if (sendto(dsock, buf, len,
/freebsd-current/usr.sbin/nghook/
H A Dmain.c79 int csock, dsock; local
151 if (NgMkSockNode(NULL, &csock, &dsock) < 0)
164 /* move dsock to fd 0 and 1 */
168 (void)dup2(dsock, 0);
169 (void)dup2(dsock, 1);
192 FD_SET(dsock, &rfds);
199 if (FD_ISSET(dsock, &rfds)) {
204 if ((rl = NgRecvData(dsock,
224 if (NgSendData(dsock, NG_SOCK_HOOK_NAME, buf, rl) < 0)
241 if (NgSendData(dsock, NG_SOCK_HOOK_NAM
[all...]
/freebsd-current/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c114 static int csock, dsock; variable
443 return (NgSendData(dsock, hook, sndbuf, sndlen));
911 if (NgMkSockNode(snmp_nodename, &csock, &dsock) < 0) {
922 if ((dsock_fd = fd_select(dsock, dsock_input, NULL, module)) == NULL) {
923 syslog(LOG_ERR, "fd_select failed on dsock: %m");
950 (void)close(dsock);
1026 if (NgMkSockNode(snmp_nodename, &csock, &dsock) < 0) {
1065 close(dsock);

Completed in 80 milliseconds