From nobody Fri Jul 15 19:42:20 2022 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ll1wD5wDxz4WT1L for ; Fri, 15 Jul 2022 19:42:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ll1wD4pyRz3kmt for ; Fri, 15 Jul 2022 19:42:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ll1wD3w88ztfF for ; Fri, 15 Jul 2022 19:42:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26FJgKho024445 for ; Fri, 15 Jul 2022 19:42:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26FJgKRa024444 for net@FreeBSD.org; Fri, 15 Jul 2022 19:42:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 252596] ping to 255.255.255.255 does not set broadcast MAC Date: Fri, 15 Jul 2022 19:42:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: veyx.shaw@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657914140; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/HtK+HjBV9HgfXpZVmelx+EKQxRI4U3JDObjwKN7+TI=; b=r09gyVvxowMCc1OcxXsCS4FKZQeiulaf6c4OMnn3UPd446h7gUXvl8Ws714r/KerTCZHTm S638nNoNR5mVjWanHKAWCSiuR7FI6zhwpYvMxlg2K5KR6Vk4VapML4jrT3ZV0bftFyX09M rSzMQ3TLSnvwsyFTg7sHrfOZWnMWGQSn7/7lEUaAi4xuZdk6jysYgLb0UY7i8J3cfAGQJE UTc8NOpu0O7rfYKOq69+4zLdbq+3BYlBh1kkokMsU2tNpB5FRthgZq5VTQpjmw3ABGDEVG 3RDfMzvRAe0o7ywgPNvAvpyqz34lg08/6xkYZ3EBEq6eVS9JrqChBsaD0MbMfg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657914140; a=rsa-sha256; cv=none; b=l9cg676P3gU1YL0B8QSti9n9vQni0yCuo/XKr58Ml8nUjeE3biPScm31e6lIjBwaZLhg/v 5aD9B197b+LIWx9lMXUYmD7IeiM0LVPcYrytBpmDQIeivGcBT3EPsW6OlFMrpUUnbcoEBE ftJ+m+2NobovQtdl3hKZS+HRVKi+xFKgtf9dwTmJOi2gHds5xfHiAmlKzaVbK1vTRdBeTh o2CoMdnzkpS/jWtACeA3W/GTukfbhp0lbkneeOd7Lts7c30taSQNlqZ4TwlKXrYzDMlmWD 6Jwzc9j5a4477SxavpPO9mJhigUjME/4PDs6Z0f7kmQuKlU3GtKU/m4GpVGesA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252596 Inoki changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veyx.shaw@gmail.com --- Comment #3 from Inoki --- 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.=