[Bug 252596] ping to 255.255.255.255 does not set broadcast MAC

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 16 Jul 2022 05:03:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252596

--- Comment #7 from Inoki <veyx.shaw@gmail.com> ---
(In reply to Mike Karels from comment #5)

Yes, I saw the option in the kernel code, there is. But as far as I can see,
none of the applications/frameworks seems to have set the flag explicitly (at
least the ping, and the Qt stuff). They worked before because in_broadcast()
does check the INET_BROADCAST address. But the mentioned commit changes the
callee to in_ifaddr_broadcast(), which does not contain such processing
anymore.

I checked the FreeBSD part in the XNU (macOS kernel), which is an old release.
The ping and our UDP broadcast keeps working on macOS. But they are broken on
current FreeBSD kernel. 

For the compatibility, should the flag be fixed in the kernel instead of
explicitly being set by the application, when the address is set to
255.255.255.255 (all ones)?

-- 
You are receiving this mail because:
You are the assignee for the bug.