case IPCTL_IPPORT_FIRSTAUTO: return (sysctl_int(oldp, oldlenp, newp, newlen, &ipport_firstauto)); case IPCTL_IPPORT_LASTAUTO: return (sysctl_int(oldp, oldlenp, newp, newlen, &ipport_lastauto)); case IPCTL_IPPORT_HIFIRSTAUTO: return (sysctl_int(oldp, oldlenp, newp, newlen, &ipport_hifirstauto)); case IPCTL_IPPORT_HILASTAUTO: return (sysctl_int(oldp, oldlenp, newp, newlen, &ipport_hilastauto));
ip_sysctl(name, namelen, oldp, oldlenp, newp, newlen)	int *name;	u_int namelen;	void *oldp;	size_t *oldlenp;	void *newp;	size_t newlen;{	/* All sysctl names at this level are terminal. */	if (namelen != 1)		return (ENOTDIR);	switch (name[0]) {	case IPCTL_FORWARDING:		return (sysctl_int(oldp, oldlenp, newp, newlen, &ipforwarding));	case IPCTL_SENDREDIRECTS:		return (sysctl_int(oldp, oldlenp, newp, newlen,			&ipsendredirects));	case IPCTL_DEFTTL:		return (sysctl_int(oldp, oldlenp, newp, newlen, &ip_defttl));#ifdef notyet	case IPCTL_DEFMTU:		return (sysctl_int(oldp, oldlenp, newp, newlen, &ip_mtu));#endif	case IPCTL_SOURCEROUTE:		/*		 * Don't allow this to change in a secure environment.		 */		if (securelevel > 0)			return (EPERM);		return (sysctl_int(oldp, oldlenp, newp, newlen,		    &ip_dosourceroute));	case IPCTL_DIRECTEDBCAST:		return (sysctl_int(oldp, oldlenp, newp, newlen,		    &ip_directedbcast));	default:		return (EOPNOTSUPP);	}	/* NOTREACHED */}