FreeBSD/sys/netinet6/mld6.c
/*
 * Retrieve or set threshold between group-source queries in seconds.
 *
 * VIMAGE: Assume curvnet set by caller.
 * SMPng: NOTE: Serialized by MLD lock.
 */
Retrieve or set threshold between group-source queries in seconds.
VIMAGE: Assume curvnet set by caller.
SMPng: NOTE: Serialized by MLD lock.
Retrieve or set threshold between group - source queries in seconds . VIMAGE : Assume curvnet set by caller . SMPng : NOTE : Serialized by MLD lock .
static int
sysctl_mld_gsr(SYSCTL_HANDLER_ARGS)
{
	int error;
	int i;
	error = sysctl_wire_old_buffer(req, sizeof(int));
	if (error)
		return (error);
	MLD_LOCK();
	i = V_mld_gsrdelay.tv_sec;
	error = sysctl_handle_int(oidp, &i, 0, req);
	if (error || !req->newptr)
		goto out_locked;
	if (i < -1 || i >= 60) {
		error = EINVAL;
		goto out_locked;
	}
	CTR2(KTR_MLD, "change mld_gsrdelay from %d to %d",
	     V_mld_gsrdelay.tv_sec, i);
	V_mld_gsrdelay.tv_sec = i;
out_locked:
	MLD_UNLOCK();
	return (error);
}
static int sysctl_mld_gsr ( SYSCTL_HANDLER_ARGS ) { int error ; int i ; error = sysctl_wire_old_buffer ( req , sizeof ( int ) ) ; if ( error ) return ( error ) ; MLD_LOCK ( ) ; i = V_mld_gsrdelay . tv_sec ; error = sysctl_handle_int ( oidp , & i , 0 , req ) ; if ( error || ! req -> newptr ) goto out_locked ; if ( i < -1 || i >= 60 ) { error = EINVAL ; goto out_locked ; } CTR2 ( KTR_MLD , " " , V_mld_gsrdelay . tv_sec , i ) ; V_mld_gsrdelay . tv_sec = i ; out_locked : MLD_UNLOCK ( ) ; return ( error ) ; }
Retrieve or set threshold between group-source queries in seconds.
Retrieve or set threshold between group - source queries in seconds .