FreeBSD/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c
/*
 * Disconnect a hook of a node
 */
Disconnect a hook of a node
Disconnect a hook of a node
int
ng_rmhook_id(ng_ID_t id, const char *hook)
{
	struct ngm_rmhook rmhook;
	char path[NG_PATHSIZ];
	strlcpy(rmhook.ourhook, hook, NG_HOOKSIZ);
	snprintf(path, NG_PATHSIZ, "[%x]:", id);
	return (NgSendMsg(csock, path,
	    NGM_GENERIC_COOKIE, NGM_RMHOOK, &rmhook, sizeof(rmhook)));
}
int ng_rmhook_id ( ng_ID_t id , const char * hook ) { struct ngm_rmhook rmhook ; char path [ NG_PATHSIZ ] ; strlcpy ( rmhook . ourhook , hook , NG_HOOKSIZ ) ; snprintf ( path , NG_PATHSIZ , " " , id ) ; return ( NgSendMsg ( csock , path , NGM_GENERIC_COOKIE , NGM_RMHOOK , & rmhook , sizeof ( rmhook ) ) ) ; }
Disconnect a hook of a node
Disconnect a hook of a node