Re: IFF_PROMISC bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In article <20020212.205809.70219775.davem@redhat.com> you wrote:
> Can you trace the value of dev->gflags for me through all of these
> actions?  It should contain IFF_PROMISC when set by this bit of code:

the problem is here:


                case SIOCGIFFLAGS:      /* Get interface flags */
-                       ifr->ifr_flags = (dev->flags&~(IFF_PROMISC|IFF_ALLMULTI))
+                       ifr->ifr_flags = (dev->flags&~(IFF_PROMISC|IFF_ALLMULTI|IFF_RUNNING))
                                |(dev->gflags&(IFF_PROMISC|IFF_ALLMULTI));
+                       if (netif_running(dev) && netif_carrier_ok(dev))
+                               ifr->ifr_flags |= IFF_RUNNING;
                        return 0;

                case SIOCSIFFLAGS:      /* Set interface flags */
@@ -1466,6 +2113,9 @@


this is net/dev.c and it is fixed in some recent 2.4.x, dont ask me which.

Greetings
Bernd
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux