Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2022 19:42:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 252596] ping to 255.255.255.255 does not set broadcast MAC
Message-ID:  <bug-252596-7501-240Kp4szXD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-252596-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-252596-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252596

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 D7=
266
(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 i=
s 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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252596-7501-240Kp4szXD>