FreeBSD/sys/netinet6/ip6_mroute.c
/*
 * Handle ioctl commands to obtain information from the cache
 */
Handle ioctl commands to obtain information from the cache
Handle ioctl commands to obtain information from the cache
int
X_mrt6_ioctl(u_long cmd, caddr_t data)
{
	int ret;
	ret = EINVAL;
	switch (cmd) {
	case SIOCGETSGCNT_IN6:
		ret = get_sg_cnt((struct sioc_sg_req6 *)data);
		break;
	case SIOCGETMIFCNT_IN6:
		ret = get_mif6_cnt((struct sioc_mif_req6 *)data);
		break;
	default:
		break;
	}
	return (ret);
}
int X_mrt6_ioctl ( u_long cmd , caddr_t data ) { int ret ; ret = EINVAL ; switch ( cmd ) { case SIOCGETSGCNT_IN6 : ret = get_sg_cnt ( ( struct sioc_sg_req6 * ) data ) ; break ; case SIOCGETMIFCNT_IN6 : ret = get_mif6_cnt ( ( struct sioc_mif_req6 * ) data ) ; break ; default : break ; } return ( ret ) ; }
Handle ioctl commands to obtain information from the cache
Handle ioctl commands to obtain information from the cache