did you do an ioctl to get the current value? and then or in the IFF_UP..
otherwise the ifr_flags is uninited...
Dave.
On Mon, 21 May 2001, John P. Looney wrote:
> Just wondering. I wanted to set the IFF_UP flag on a device, with;
>> ifreqp->ifr_flags |= IFF_UP;
> result = ioctl(skfd,SIOCSIFFLAGS, ifreqp);
>> But, I notice some messages in the syslog like;
>> May 21 20:19:19 angel kernel: eth1: Promiscuous mode enabled.
> May 21 20:19:22 angel kernel: eth1: Setting full-duplex based on MII #32 link partner ability of 45e1.
>> So, it looks like it's setting others too (though ifconfig doesn't
> mention anything about promiscous mode enabled). Should I be doing the
> "OR with what's there already" or not ?
>> Kate
>>
--
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
pam_smb / Linux DecStation / Linux VAX / ILUG person
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!