From nobody Fri Dec 09 09:17:32 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 4NT55W0ynSz4k5Nt for ; Fri, 9 Dec 2022 09:17:35 +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 4NT55V73rjz3LLs for ; Fri, 9 Dec 2022 09:17:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670577455; 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=jh2fPGvIkq1jN6kl38hX/nS72dA0gO++eJZQBs8OSPo=; b=Mi/TfJF7xDbUGr2Bbr8/qewYUoCURo8XKo54kSeJ6XCda0HAH+u3kW9C6doy0mgd4aTPLK ukUpwhZmt1XvUa6cCuVl7n5bx3ITqGQrZ0tscVKXN/NZDi8QeRpCfvlYohG+1Ul887YPyR 2ACT0+TsHzauy/YBc43ZWqOz8xxrz99ogjSWr3eXN/DbhbBcvIk0ZEhZj1ZdUcwoJIK76U 4emt2z1FMJQPq6FAXGlcTvQjBZkJF7c8Hx6oflYDMHuNauIsmWzRhW0a0A0xWKLp+vqGxs P5u6TmceN7saPUJAJ7yXpv2XrhI87XBMjI1hqVlidbIBMKNLG7dq4S74p8FU1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670577455; a=rsa-sha256; cv=none; b=P7fVzXPW75amKhpIQLOUp+PXOXMgx2YUOwb6lg0HyD1uLX5MAzDCB0AI0e8F0De4aPSYpC Dw0MC67+EeEy3G5NFGhDZ7/+UpxYb8RGf3aSNgTSdK4doUTTKm0Ehw3sGDUsl+Nw1fNfOg TI39mbH/Y4CFoBgw0YojZT6D5b7b3nMu+v4dkDUAWDP6kZCTAfNnED6aAXmG7bE5qaeSIu LGV1lkvLnPq7EIqaS34dpj/tsvbdE1OM0MkqN9KI3LoC7hLb80xQYRpQ5FBWZldK8tJTm5 vC5gS918qHvHaZHcQYUlNrCr6zVtLdq9vq105YIXyVCl+ewv5EquQtkfK6MuGA== 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 4NT55V678ZzW9n for ; Fri, 9 Dec 2022 09:17:34 +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 2B99HYf7072381 for ; Fri, 9 Dec 2022 09:17:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B99HYCp072380 for net@FreeBSD.org; Fri, 9 Dec 2022 09:17:34 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, 09 Dec 2022 09:17:32 +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: zlei.huang@gmail.com X-Bugzilla-Status: Open 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252596 --- Comment #13 from Zhenlei Huang --- (In reply to Yuichiro NAITO from comment #11) > For example, I have 'em0' interface for IPv4. > Set a route entry as 'route add 255.255.255.255 -iface em0'. > Then 'ping 255.255.255.255' works as I expected. Found an interesting bug, the ICMP request is duplicated (and hence the duplicated ICMP reply). ``` # route add 255.255.255.255 -iface em0 # ping -c1 255.255.255.255=20 ``` The tcpdump session: ``` # tcpdump -nvei em0 'icmp' 11:16:47.097435 00:0c:29:73:4f:98 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x08= 00), length 98: (tos 0x0, ttl 64, id 8264, offset 0, flags [none], proto ICMP (1= ), length 84) 192.168.117.154 > 255.255.255.255: ICMP echo request, id 50203, seq 0, length 64 11:16:47.097476 00:0c:29:73:4f:98 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x08= 00), length 98: (tos 0x0, ttl 64, id 8264, offset 0, flags [none], proto ICMP (1= ), length 84) 192.168.117.154 > 255.255.255.255: ICMP echo request, id 50203, seq 0, length 64 11:16:47.097688 00:50:56:c0:00:08 > 00:0c:29:73:4f:98, ethertype IPv4 (0x08= 00), length 98: (tos 0x0, ttl 64, id 61857, offset 0, flags [none], proto ICMP (= 1), length 84) 192.168.117.1 > 192.168.117.154: ICMP echo reply, id 50203, seq 0, leng= th 64 11:16:47.097692 00:50:56:f2:7d:1e > 00:0c:29:73:4f:98, ethertype IPv4 (0x08= 00), length 98: (tos 0x0, ttl 128, id 2139, offset 0, flags [none], proto ICMP (= 1), length 84) 192.168.117.2 > 192.168.117.154: ICMP echo reply, id 50203, seq 0, leng= th 64 ``` --=20 You are receiving this mail because: You are the assignee for the bug.=