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

/freebsd-10-stable/usr.sbin/ngctl/
H A Dngctl.h77 extern int csock, dsock;
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;
258 FD_SET(dsock, &rfds);
350 const int maxfd = MAX(csock, dsock) + 1;
360 FD_SET(dsock, &rfds);
370 FD_SET(dsock, &rfds);
408 if (FD_ISSET(dsock, rfds)) {
414 if ((rl = NgAllocRecvData(dsock,
[all...]
H A Dwrite.c112 if (sendto(dsock, buf, len,
/freebsd-10-stable/usr.sbin/nghook/
H A Dmain.c81 int csock, dsock; local
153 if (NgMkSockNode(NULL, &csock, &dsock) < 0)
166 /* move dsock to fd 0 and 1 */
170 (void)dup2(dsock, 0);
171 (void)dup2(dsock, 1);
194 FD_SET(dsock, &rfds);
201 if (FD_ISSET(dsock, &rfds)) {
206 if ((rl = NgRecvData(dsock,
226 if (NgSendData(dsock, NG_SOCK_HOOK_NAME, buf, rl) < 0)
243 if (NgSendData(dsock, NG_SOCK_HOOK_NAM
[all...]
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c116 static int csock, dsock; variable
445 return (NgSendData(dsock, hook, sndbuf, sndlen));
913 if (NgMkSockNode(snmp_nodename, &csock, &dsock) < 0) {
924 if ((dsock_fd = fd_select(dsock, dsock_input, NULL, module)) == NULL) {
925 syslog(LOG_ERR, "fd_select failed on dsock: %m");
952 (void)close(dsock);
1028 if (NgMkSockNode(snmp_nodename, &csock, &dsock) < 0) {
1067 close(dsock);

Completed in 193 milliseconds