* [uml-devel] Test for ethernet broadcast address?
@ 2005-11-09 1:13 Rob Landley
2005-11-09 1:44 ` Blaisorblade
0 siblings, 1 reply; 3+ messages in thread
From: Rob Landley @ 2005-11-09 1:13 UTC (permalink / raw)
To: user-mode-linux-devel
So I'm trying to play with ifenslave under UML, and my naieve attempt to go
./linux LD_ASSUME_KERNEL=2.4.1 eth0=daemon,11:11:11:11:11:11 \
eth1=daemon,22:22:22:22:22:22 rootfstype=hostfs rw init=/bin/sh
Led to unexpected results that eth0 had a mac addr of 00:00:00:00:00:00.
Eventually, I tracked it down to this test in arch/um/drivers/net_kern.c:
if(addr[0] & 1){
printk(KERN_ERR
"Attempt to assign a broadcast ethernet address to a "
"device disallowed\n");
return(0);
}
My question is: where's the spec for what is and isn't a broadcast address?
RFC 894 says that "the" ethernet broadcast address is (only) FF:FF:FF:FF:FF:FF
http://www.freesoft.org/CIE/RFC/894/
So does Ethereal's wiki:
http://wiki.ethereal.com/Ethernet
Confused?
Rob
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [uml-devel] Test for ethernet broadcast address?
2005-11-09 1:13 [uml-devel] Test for ethernet broadcast address? Rob Landley
@ 2005-11-09 1:44 ` Blaisorblade
2005-11-10 4:03 ` Jeff Dike
0 siblings, 1 reply; 3+ messages in thread
From: Blaisorblade @ 2005-11-09 1:44 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Rob Landley
On Wednesday 09 November 2005 02:13, Rob Landley wrote:
> So I'm trying to play with ifenslave under UML, and my naieve attempt to go
>
> ./linux LD_ASSUME_KERNEL=2.4.1 eth0=daemon,11:11:11:11:11:11 \
> eth1=daemon,22:22:22:22:22:22 rootfstype=hostfs rw init=/bin/sh
>
> Led to unexpected results that eth0 had a mac addr of 00:00:00:00:00:00.
> Eventually, I tracked it down to this test in arch/um/drivers/net_kern.c:
> if(addr[0] & 1){
> printk(KERN_ERR
> "Attempt to assign a broadcast ethernet address to a "
> "device disallowed\n");
> return(0);
> }
>
> My question is: where's the spec for what is and isn't a broadcast address?
Don't know what Jeff means, but he and UML consistently says "first byte odd
<-> broadcast". That's even coded above.
Don't ask me what exaclty he means. ^H^H^H^H
Ouch, I have the vice to understand things. So I went to the RFC, I spent
enough time on them, and I understood they're not the Ethernet specification
(the real spec is the DIX one, and later IEEE ones).
They're way too short!
But quoting from your link to ethereal's wiki:
"A destination MAC address of ff:ff:ff:ff:ff:ff indicates a Broadcast, meaning
the packet is sent from one host to any other on that network.
<<<<<<<<<<<<<<<<<<<<<
A destination MAC address where the low-order bit of the first byte is set
<<<<<<<<<<<<<<<<<<<<<
indicats a Multicast, meaning the packet is sent from one host to all hosts
on the network interested in packets sent to that MAC address. A number of
multicast addresses have been assigned; see Ethernet numbers at the IANA,
Michael A. Patton's list of multicast addresses, and Ethereal's list of
Ethernet vendor codes and well-known MAC addresses, from the Ethereal source
distribution, for assigned multicast addresses."
So. UML is not exact technically, but it's enough for our purposes. Don't know
whether it may make sense to assign a multicast address to an iface, but I
guess it's more complicate.
Anyway, complete references and patches (or indications about what to code)
are always welcome.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [uml-devel] Test for ethernet broadcast address?
2005-11-09 1:44 ` Blaisorblade
@ 2005-11-10 4:03 ` Jeff Dike
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Dike @ 2005-11-10 4:03 UTC (permalink / raw)
To: Blaisorblade; +Cc: user-mode-linux-devel, Rob Landley
On Wed, Nov 09, 2005 at 02:44:52AM +0100, Blaisorblade wrote:
> So. UML is not exact technically, but it's enough for our purposes. Don't know
> whether it may make sense to assign a multicast address to an iface, but I
> guess it's more complicate.
Yeah, I'm not totally correct on that, but I think that broadcast is a special
case of multicast, and you can't assign such a MAC to an interface.
Jeff
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-11-10 3:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-09 1:13 [uml-devel] Test for ethernet broadcast address? Rob Landley
2005-11-09 1:44 ` Blaisorblade
2005-11-10 4:03 ` Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox