[Bug 252596] ping to 255.255.255.255 does not set broadcast MAC
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 31 Oct 2022 05:33:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252596
Yuichiro NAITO <naito.yuichiro@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |naito.yuichiro@gmail.com
--- Comment #11 from Yuichiro NAITO <naito.yuichiro@gmail.com> ---
(In reply to Inoki from comment #9)
Hi.
>Finally, our workaround is to iterate all the non-local interfaces and send to their >broadcast addresses. This should be coherent with the current design in the FreeBSD >kernel.
I see the same issue on my FreeBSD 14-CURRENT kernel and did the same
workaround
just like you did.
I had a chance to talk with hrs@ about this issue.
He gave me an advise that adding '255.255.255.255' route entry via specific
interface
also solves this issue without source code change.
For example, I have 'em0' interface for IPv4.
Set a route entry as 'route add 255.255.255.255 -iface em0'.
Then 'ping 255.255.255.255' works as I expected.
When my 'em0' has a broadcast address '192.168.1.255/24',
`route add 255.255.255.255 192.168.1.255' also works for me.
--
You are receiving this mail because:
You are the assignee for the bug.