Re: [Bonding-devel] Re: Weird bonding driver and tulip quad-card interaction on 2.4.17

Ard van Breemen (ard@telegraafnet.nl)
Fri, 18 Jan 2002 10:33:03 +0100


On Thu, Jan 17, 2002 at 02:20:36PM -0800, Peter C. Norton wrote:
> As a follow-up, Chad T. on the bonding list pointed out to me that there is
> no Media flag normally output by ifconfig. This would lead me to believe
> that somehow the bonding driver is perhaps overwriting the MAC address in my
> case. How can this have happened? Why is it only on this system?
It *is* printed:

if (hw->print != NULL && (! (hw_null_address(hw, ptr->hwaddr) &&
hw->suppress_null_addr)))
printf(_("HWaddr %s "), hw->print(ptr->hwaddr));
#ifdef IFF_PORTSEL
if (ptr->flags & IFF_PORTSEL) {
printf(_("Media:%s"), if_port_text[ptr->map.port][0]);
if (ptr->flags & IFF_AUTOMEDIA)
printf(_("(auto)"));
}
#endif
printf("\n");

So, something has set IFF_PORTSEL, and ptr->map.port is not within bounds.
Or you have a kernel which does not support IFF_PORTSEL, but something
else is using ptr->flags with different values...

-- 
<ard@telegraafnet.nl> Telegraaf Elektronische Media  http://wwwijzer.nl
http://leerquoten.monster.org/ http://www.faqs.org/rfcs/rfc1855.html 
Let your government know you value your freedom. Sign the petition:
http://petition.eurolinux.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/