[ILUG] network device flags...

From: John P. Looney (john at domain antefacto.com)
Date: Mon 21 May 2001 - 20:19:36 IST


 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

-- 
 When I say 'free', I mean 'free': free from bond, of chain or command: 
to go where you will, even to Mordor, Saruman, if you desire. " 
    -- Gandalf, paraphrasing the choice between Free and Non-free software


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:24 GMT