From nobody Fri Dec 09 10:28:45 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 4NT6gf22GNz4kD7Z for ; Fri, 9 Dec 2022 10:28:46 +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 4NT6gf1078z3hr6 for ; Fri, 9 Dec 2022 10:28:46 +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=1670581726; 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=Tjh/RjCT9e/lR4xPTqbxxgTSqVGWswTitr6UBuA1hqw=; b=X0kZegZWhI9nXLd/Y3W/FSo8untNvBr4EXRDcpywq7l1nnr71cJ+chyGMOvV5NoNYWwvX/ JtLgbnqoZ8OG6eqysN4uhwRuESThDzS24Ogfbt7Ry1TA2/ReiKAViYeRYD6lIMFzm2qJVb EY3eOjjO6dzx1vcMAsusbHYGNkJ9bZQiozKmX3oGn8wcmo5/CsjVhOZOKyHw5Jr2q9STdS FuDSD7ea4A58JYNmNcd9kfo1TNS0W+ITaPng6oMLTafgsAacwLr7Abn5svR9jV3lTWUuTA Pfiq8BuvDeCe7a44i9PzCiZiAH+xvPJK3llEZvpPZBshv5A5JQdBOwvTaFjIIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670581726; a=rsa-sha256; cv=none; b=bplCXZgHZPIKXAag5BFxvSlC/CxizFzSITQ8z+xv+HFpaLkKLvaA9bu0lRguvXvgfLGI/v 7XrQwkr4frQ1BQzL8xIuCVY6wWavn0RVkkcztVf71fPRZ3bDplSLy58gDa+gWi3xJmpvUo Tfp601kfpinVl6e9TEit5OJH/JTV1dJolqkRORCQyTY0KzQw3soy9GVBh55nUWxHAkIdq2 zn4cnjCAGRrhzQ2nCxLMwHRdJLr0AZ5znT4uwoQxoRxy4m9eB+y7B0ShIOrUB8iCxRxqs5 zDWpXR08YnA9yrwybv9psU2DzMyhUz/fMixIwxy578AbYL4e5R5DfKqMMO2zZw== 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 4NT6gd70S9zXMc for ; Fri, 9 Dec 2022 10:28:45 +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 2B9ASjOO077359 for ; Fri, 9 Dec 2022 10:28:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B9ASjwX077358 for net@FreeBSD.org; Fri, 9 Dec 2022 10:28:45 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 10:28:45 +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: naito.yuichiro@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 #14 from Yuichiro NAITO --- (In reply to Zhenlei Huang from comment #13) > Found an interesting bug, the ICMP request is duplicated (and hence the d= uplicated ICMP reply). I don't think it is a bug of protocol stack. The first ICMP request is really sent to the ethernet, the second one is received packet that is broadcasted. The sending interface is also in the broadcast domain. If you make a bridge interface that includes 'em0' and use the bridge inter= face for 255.255.255.255. You can see just sending packets on 'em0'. Example commands are here. ``` ifconfig bridge0 create ifconfig bridge0 addm em0 ifconfig bridge0 inet / route add 255.255.255.255 -iface bridge0 tcpdump -nvei em0 icmp ``` One packet can be seen on 'em0' while `ping -c1 255.255.255.255`. And, two received ICMP responses are different in source address. They are '192.168.117.1' and '192.168.117.2'. Two hosts responded to your broadcast packet. --=20 You are receiving this mail because: You are the assignee for the bug.=