FreeBSD/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c
/*
 * Now the module is started. Select on the sockets, so that we can get 
 * unsolicited input.
 */
Now the module is started. Select on the sockets, so that we can get
unsolicited input.
Now the module is started . Select on the sockets so that we can get unsolicited input .
static void
ng_start(void)
{
	if (snmp_node == 0) {
		if (NgMkSockNode(snmp_nodename, &csock, &dsock) < 0) {
			syslog(LOG_ERR, "NgMkSockNode: %m");
			exit(1);
		}
		snmp_node = ng_node_id(".:");
	}
	if ((csock_fd = fd_select(csock, csock_input, NULL, module)) == NULL) {
		syslog(LOG_ERR, "fd_select failed on csock: %m");
		return;
	}
	if ((dsock_fd = fd_select(dsock, dsock_input, NULL, module)) == NULL) {
		syslog(LOG_ERR, "fd_select failed on dsock: %m");
		return;
	}
	reg_index = or_register(&oid_begemotNg, 
	    "The MIB for the NetGraph access module for SNMP.", module);
}
static void ng_start ( void ) { if ( snmp_node == 0 ) { if ( NgMkSockNode ( snmp_nodename , & csock , & dsock ) < 0 ) { syslog ( LOG_ERR , " " ) ; exit ( 1 ) ; } snmp_node = ng_node_id ( " " ) ; } if ( ( csock_fd = fd_select ( csock , csock_input , NULL , module ) ) == NULL ) { syslog ( LOG_ERR , " " ) ; return ; } if ( ( dsock_fd = fd_select ( dsock , dsock_input , NULL , module ) ) == NULL ) { syslog ( LOG_ERR , " " ) ; return ; } reg_index = or_register ( & oid_begemotNg , " " , module ) ; }
Now the module is started.
Now the module is started .