2003-09-15 Jay Monkman <jtm@smoothsmoothie.com>

PR 482/networking
	* rtems/rtems_glue.c: Network interfaces cant be taken down
This commit is contained in:
Jennifer Averett
2003-09-15 14:04:37 +00:00
parent fd5ac32b51
commit a56c338500

View File

@@ -1023,6 +1023,10 @@ int rtems_bsdnet_ifconfig (const char *ifname, unsigned32 cmd, void *param)
break;
}
ifreq.ifr_flags |= *((short*) param);
if ( (*((short*) param) & IFF_UP ) == 0 ) {
/* set the interface down */
ifreq.ifr_flags &= ~(IFF_UP);
}
r = ioctl (s, SIOCSIFFLAGS, &ifreq);
break;