From: Dave Airlie (airlied at domain csn.ul.ie)
Date: Mon 21 May 2001 - 20:52:01 IST
did you do an ioctl to get the current value? and then or in the IFF_UP..
otherwise the ifr_flags is uninited...
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 ?
-- David Airlie, Software Engineer http://www.skynet.ie/~airlied / airlied at domain skynet.ie pam_smb / Linux DecStation / Linux VAX / ILUG person
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:24 GMT