[PATCH] Re: Bringing down ethernet

Charles Steaderman charlies at poliac.com
Fri Mar 28 21:22:43 UTC 2003


Might this not cause problems for other parts of the stack if they don't 
explicitly include IFF_UP in their call?

Jitendra Vegiraju wrote:

> I have dealt with the same requirement in a different way.
> Why not fix the rtems_bsdnet_ifconfig() function itself.
> In the code that handles SIOCSIFFLAGS, add the following lines.
>
>                        if ( (*((short*) param) & IFF_UP ) == 0 ) {
>                            /* set the interface down */
>                            ifreq.ifr_flags &= ~(IFF_UP);
>                        }
>                        r = ioctl (s, SIOCSIFFLAGS, &ifreq);
>
> Joel, please apply the patch if it is acceptable to networking code 
> maintainers.
>
> The patch is against rtems-ss-20030128.
> Thanks,
> -Jitendra
>






More information about the users mailing list