This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Default eth hardware address is an eCos bug
- From: Paul Sheer <psheer at icon dot co dot za>
- To: ecos-discuss at sources dot redhat dot com
- Cc: aacquaviva at deis dot unibo dot it
- Date: Sat, 8 Dec 2001 18:32:27 +0200
- Subject: [ECOS] Default eth hardware address is an eCos bug
- Reply-to: psheer at icon dot co dot za
Hi there
./devs/eth/arm/flexanet/current/cdl/flexanet_eth_drivers.cdl
contains a default hardware address as follows:
default_value {"{0x11, 0x12, 0x13, 0x14, 0x15, 0x16}"}
now yow will note in ./tcpip/current/src/sys/net/if_ethersubr.c
the lines:
if (eh->ether_dhost[0] & 1) {
if (bcmp((caddr_t)etherbroadcastaddr,
(caddr_t)eh->ether_dhost,
sizeof(etherbroadcastaddr)) == 0)
m->m_flags |= M_BCAST;
else
m->m_flags |= M_MCAST;
}
which breaks eCos accept()'s
The hardware address should be:
default_value {"{0x0, 0x12, 0x13, 0x14, 0x15, 0x16}"}
since most (all?) ethernet cards have the first byte zero.
-paul
--
Paul Sheer Consulting IT Services . . . Tel . . . +27 21 761 7224
Email . . . psheer@icon.co.za . . . . . . Pager . . . 088 0057266
Linux development, cryptography, recruitment, support, training
http://www.icon.co.za/~psheer . . . . http://rute.sourceforge.net
L I N U X . . . . . . . . . . . . The Choice of a GNU Generation