From nobody Sat Jul 16 16:03:41 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 4LlY1V2qnwz4Wt2S for ; Sat, 16 Jul 2022 16:03:42 +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 4LlY1V1kW4z3fQS for ; Sat, 16 Jul 2022 16:03:42 +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 4LlY1V0nVyzS2V for ; Sat, 16 Jul 2022 16:03:42 +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 26GG3g4M087552 for ; Sat, 16 Jul 2022 16:03:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26GG3gQc087551 for net@FreeBSD.org; Sat, 16 Jul 2022 16:03:42 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 16:03:41 +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: karels@freebsd.org 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=1657987422; 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=yRrgoMDNucwhJnMYemszRLtAfh+55bN2tEpBHRFlecA=; b=NEHgZEdFG9o5bhpB/uvVCOdKFf+rP4oDU3oh3W8J5vcmOq2OFUexQGQeoTmwTeXvly6ZY6 KMeVw5Fr6mkvcInoTNkTYwjmd1dwyl3j22PDzR9yi6PAQ6RTY3vcKZX+a5X4zZgRmeCU4l n6BoFk9P3eSTQB2s3UT7ZsyvAbN/rllHUHYsGKUywZlIs20xirpSQ3WZi76iTH5PdAYBus b4F4xvWRfOsF/nVEBReQf+KJPalIjs0EqDqEDZjTDHry83MFpsOLKaRje0R++QvX1OUtS6 bIEdMCuV5RLzCn8TLQW1/r24eqxlA2jHFvR6eRHV/bT1g97faGGZIgQMSy8w2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657987422; a=rsa-sha256; cv=none; b=H09yr6tfimigt8Z0Qx4v8KQr+VBCSjWcl709jiZlgDzAYPIpxCocD6bN8Q2M4vaU68YgCW VfFY7ksmZHeo1DpFSsQcb7YChct5SnlpcueUB594x+FvOaVlNLu7kSfICUy992DgUSaOXM DMKwTO5D5GYOGgTkCAQWXegECNG94KVd1dov1zYV/gYhoUeNgsTCy89fm2ZUg2oJpWlI5n 21RKBKJlGL6AKicVeFEygkneaj+Q/5wk7kO5x4Ak5b17zxI1KD466ZYouPhmx5OidAhu2+ XXUjVfubrk42rMn+pDWvyYT85boCrLLwQaQjIEzIqoJy64JTETgFlRHoLVzcBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252596 --- Comment #8 from Mike Karels --- I have mixed feelings about restoring the checks for INADDR_BROADCAST and INADDR_ANY. The problem with a send to 255.255.255.255 for a broadcast is = that it doesn't allow any way to select the outgoing interface. The in(4) man p= age is out of date on this; the interface selection is now done via routing. T= his means that a send to 255.255.255.255 would often follow the default route, which may or may not be right. A more explicit route can be added, although that seems like a poor way to control an application, and only allows one interface to be used. The application already needs to set the SO_BROADCAST option; setting IP_ONESBCAST and providing a way to specify the destination address doesn't seem like a big increment. Granted, ping will not have a w= ay to do this, but that doesn't seem like a very important use case. If the change you cited was made recently, I might be more worried about compatibility. But it was made almost 6 years ago. --=20 You are receiving this mail because: You are the assignee for the bug.=