rem: IOCTL_DEBUGOUT1("ioctl received: UNKNOWN (0x%x)\n", (int)command);
add: IOCTL_DEBUGOUT1("ioctl received: UNKNOWN (0x%x)", (int)command);
context: em_ioctl(struct ifnet *ifp, u_long command, caddr_t data){	int             s, mask, error = 0;	struct ifreq   *ifr = (struct ifreq *) data;	struct adapter * adapter = ifp->if_softc;	s = splimp();	if (adapter->in_detach) goto out;	switch (command) {	case SIOCSIFADDR:	case SIOCGIFADDR:		IOCTL_DEBUGOUT("ioctl rcv'd: SIOCxIFADDR (Get/Set Interface Addr)");		ether_ioctl(ifp, command, data);		break;	case SIOCSIFMTU:		IOCTL_DEBUGOUT("ioctl rcv'd: SIOCSIFMTU (Set Interface MTU)");		if (ifr->ifr_mtu > MAX_JUMBO_FRAME_SIZE - ETHER_HDR_LEN) {			error = EINVAL;		} else {			ifp->if_mtu = ifr->ifr_mtu;			adapter->hw.max_frame_size = 			ifp->if_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN;			em_init(adapter);		}		break;	case SIOCSIFFLAGS:		IOCTL_DEBUGOUT("ioctl rcv'd: SIOCSIFFLAGS (Set Interface Flags)");		if (ifp->if_flags & IFF_UP) {			if (!(ifp->if_flags & IFF_RUNNING)) {				em_init(adapter);			}			em_disable_promisc(adapter);			em_set_promisc(adapter);		} else {			if (ifp->if_flags & IFF_RUNNING) {				em_stop(adapter);			}		}		break;	case SIOCADDMULTI:	case SIOCDELMULTI:		IOCTL_DEBUGOUT("ioctl rcv'd: SIOC(ADD|DEL)MULTI");		if (ifp->if_flags & IFF_RUNNING) {			em_disable_intr(adapter);			em_set_multi(adapter);			if (adapter->hw.mac_type == em_82542_rev2_0) {				em_initialize_receive_unit(adapter);			}			em_enable_intr(adapter);		}		break;	case SIOCSIFMEDIA:	case SIOCGIFMEDIA:		IOCTL_DEBUGOUT("ioctl rcv'd: SIOCxIFMEDIA (Get/Set Interface Media)");		error = ifmedia_ioctl(ifp, ifr, &adapter->media, command);		break;	case SIOCSIFCAP:		IOCTL_DEBUGOUT("ioctl rcv'd: SIOCSIFCAP (Set Capabilities)");		mask = ifr->ifr_reqcap ^ ifp->if_capenable;		if (mask & IFCAP_HWCSUM) {			ifp->if_capenable ^= IFCAP_HWCSUM;			if (ifp->if_flags & IFF_RUNNING)				em_init(adapter);		}		break;	default:		IOCTL_DEBUGOUT1("ioctl received: UNKNOWN (0x%x)\n", (int)command);		error = EINVAL;	}out:	splx(s);	return(error);}