From nobody Sat Jul 16 05:03:14 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 4LlGMS3qMXz4TQv9 for ; Sat, 16 Jul 2022 05:03:16 +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 4LlGMS2kczz3n90 for ; Sat, 16 Jul 2022 05:03:16 +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 4LlGMS1nbXz184l for ; Sat, 16 Jul 2022 05:03:16 +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 26G53G9F023223 for ; Sat, 16 Jul 2022 05:03:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26G53G2s023222 for net@FreeBSD.org; Sat, 16 Jul 2022 05:03:16 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: Sat, 16 Jul 2022 05:03:14 +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: 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=1657947796; 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=jgdHU1csfB6TM5AO4qaFBl2n8KHY9rDLeg3cwJ7O3QE=; b=euXXRhM2A2AfF1hKko+22m+vrjU66eX4ohLKUa9IF/wrpyA8r2gNYL4mxlEcONitM2jKwH wndlVrm3jKDHU2uFY7x1awntMeN1hqNO6CPdNCc3fcPUL2femOvXsNwVD8wCBcCQJ0umBe RfXVoBPb5Wq30oiigDIOzIFVMDB+XF4674tZSVr5CXiB0BDcrwVlaUOY6C90rOeQ9CEjqR zJUjKfgpqd4we8Mr0VKhJRH9EMW5qyVuoix+mVxdyQ1d/dHmkXxhxtEZmhGxmJ3keUbs+R MsT5+T7ro0sLABeK1nk325Ll1QlVOcx5iWBYz79T3s6Tf6gG157ARRtiacac1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657947796; a=rsa-sha256; cv=none; b=Vcs/0lalIqox42K5yYXSr6C9yv1z+XJS28fpis1BPaaYep/Pz+hHYJR8MhD4rfArh7iV9T 1y1/jSrnk5oSpuZPvNqcvGFqlNLHn4MPAWukuCMY4WN+lkxZKsPELEpy4KvPz3MoFXuDDK NGCHjMIGR3pujv9fI5qPyBID9uAWvIqZ/heQj0bVvFxoLRAVbjxPdCxOKfZi2LXGFp+mX2 YxjBkbqChLqIANZa06sLRvdBQxpWuhzWCGwAemuk1UT+Mm/bKyZr/frTwA9sRjHnXmm4ql 8eW8oQgIS6/yAvJiRlzBt4Sg54MO1E3cCRejp3HPpSsWTeJSSLb6yFxWHONF8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252596 --- Comment #7 from Inoki --- (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 relea= se. The ping and our UDP broadcast keeps working on macOS. But they are broken = on current FreeBSD kernel.=20 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)? --=20 You are receiving this mail because: You are the assignee for the bug.=