Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2005 09:54:45 +0100
From:      Brian Candler <B.Candler@pobox.com>
To:        freebsd-net@freebsd.org
Subject:   255.255.255.255 broadcast changed from 4.x to 5.x
Message-ID:  <20051013085445.GA10797@uk.tiscali.com>

next in thread | raw e-mail | index | archive | help
I've noticed a change in behaviour between FreeBSD 4.9 and FreeBSD 5.4

When sending an undirected broadcast to 255.255.255.255, FreeBSD 4.9
encapsulates this with the broadcast MAC address (ff:ff:ff:ff:ff:ff) as the
destination.

However, FreeBSD 5.4 encapsulates the packet using the MAC address of the
default router, and therefore nobody else on the network sees it.

Where this broke me was using wakeonlan. This utility sends a magic packet
to 255.255.255.255 by default, and worked under FreeBSD 4.9 but not 5.4.
After debugging with tcpdump -e, I found the issue with the MAC address.
Configuring the program to send to the network's broadcast address instead
of 255.255.255.255 fixed the problem; the packet was addressed to
ff:ff:ff:ff:ff:ff, and the other computer woke up. Now I know about this, I
can demonstrate it using 'ping 255.255.255.255' just as easily.

My question is: is this an intentional change? Is it documented?

# egrep -i '(broadcast|255)' /usr/src/UPDATING
# 

Thanks,

Brian.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051013085445.GA10797>