Merged base line score603e BSP

This commit is contained in:
Joel Sherrill
1998-10-26 23:31:02 +00:00
parent 7bf3aa9bdb
commit f3e13a1eb8

View File

@@ -1374,41 +1374,41 @@ sonic_ioctl (struct ifnet *ifp, int command, caddr_t data)
int error = 0; int error = 0;
switch (command) { switch (command) {
case SIOCGIFADDR: case SIOCGIFADDR:
case SIOCSIFADDR: case SIOCSIFADDR:
ether_ioctl (ifp, command, data); ether_ioctl (ifp, command, data);
break;
case SIOCSIFFLAGS:
switch (ifp->if_flags & (IFF_UP | IFF_RUNNING)) {
case IFF_RUNNING:
sonic_stop (sc);
break; break;
case IFF_UP: case SIOCSIFFLAGS:
sonic_init (sc); switch (ifp->if_flags & (IFF_UP | IFF_RUNNING)) {
case IFF_RUNNING:
sonic_stop (sc);
break;
case IFF_UP:
sonic_init (sc);
break;
case IFF_UP | IFF_RUNNING:
sonic_stop (sc);
sonic_init (sc);
break;
default:
break;
}
break; break;
case IFF_UP | IFF_RUNNING: case SIO_RTEMS_SHOW_STATS:
sonic_stop (sc); sonic_stats (sc);
sonic_init (sc);
break; break;
default:
break;
}
break;
case SIO_RTEMS_SHOW_STATS:
sonic_stats (sc);
break;
/* /*
* FIXME: All sorts of multicast commands need to be added here! * FIXME: All sorts of multicast commands need to be added here!
*/ */
default: default:
error = EINVAL; error = EINVAL;
break; break;
} }
return error; return error;
} }