255.255.255.255 broadcast changed from 4.x to 5.x

From: Brian Candler (B.Candler_at_pobox.com)
Date: 10/13/05

  • Next message: Dinesh Nair: "Broadcom NetXtreme BCM5751M Gigabit Ethernet PCI Express and FreeBSD 4.10"
    Date: Thu, 13 Oct 2005 09:54:45 +0100
    To: freebsd-net@freebsd.org
    
    

    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.
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Dinesh Nair: "Broadcom NetXtreme BCM5751M Gigabit Ethernet PCI Express and FreeBSD 4.10"

    Relevant Pages

    • Re: learning unix w/ fbsd?
      ... Commando taught me that the flag options were both useful ... > Given the loss of commando in OS X and the improvements in FreeBSD ... > Mac, but that was never the point of FreeBSD. ... It is instructive to recall what the first /killer app/ for AT&T unix ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Intel Macs and FreeBSD?
      ... Just install Mac Developer Tools (included in the Applications ... At the risk of digressing on this topic, I want to add that I am actually at this point deciding between FreeBSD for the migration and Ubuntu. ... I considered migrating to OSX on the mini, and I do maintain an OSX Server machine at work, but I don't like the lack of a port system. ...
      (freebsd-questions)
    • Re: MAC OS X connection to FreeBSD?
      ... MAC OS X connection to FreeBSD? ... then used it all as the MAC OS X core (without the GUI of course)? ... they used it all as the Darwin core. ...
      (freebsd-questions)
    • Re: Intel Macs, FreeBSD, and drivers
      ... will that driver work under FreeBSD? ... a very new Intel Mac has a new disk controller, ...
      (freebsd-questions)
    • Re: Mac UFS partition unreadable
      ... under OS-X and left about half of the space unallocated. ... with the normal HFS+ formatting. ... I then moved the disk to FreeBSD. ... So if I've been using it under FBSD and want to use it on the Mac, ...
      (freebsd-hackers)