[Bug 252596] ping to 255.255.255.255 does not set broadcast MAC
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Jul 2022 19:42:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252596 Inoki <veyx.shaw@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veyx.shaw@gmail.com --- Comment #3 from Inoki <veyx.shaw@gmail.com> --- Hi, our application using UDP broadcast encounters the same issue. Like in the original description, it is due to the unset broadcast flag, and then the wrong physical address (usually is of the gateway) instead of the broadcasting physical address is used. This prevents the packet from broadcasting. I investigated the origin of this issue, which seems to be introduced in D7266 (commit 90cc51a1ab4be2388560ee1d543d3fddc8d2c6db), affecting release/13.1.0, release/13.0.0, release/12.3.0, release/12.2.0, release/12.1.0 and release/12.0.0. However, the patch does not work for me because in my configuration there is a router, so another branch is used. I propose a different patch after all the branches: by testing whether the IP address is a broadcast one (255.255.255.255) or an anycast one. -- You are receiving this mail because: You are the assignee for the bug.