From owner-freebsd-net@freebsd.org Tue Jan 12 13:34:17 2021 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 01CA64D85F8 for ; Tue, 12 Jan 2021 13:34:17 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DFWkv5dgGz3GXp for ; Tue, 12 Jan 2021 13:34:15 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from myt5-a43f74ee162a.qloud-c.yandex.net (myt5-a43f74ee162a.qloud-c.yandex.net [IPv6:2a02:6b8:c12:3e14:0:640:a43f:74ee]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 42FED18C007B; Tue, 12 Jan 2021 16:34:11 +0300 (MSK) Received: from myt2-accb38a5c431.qloud-c.yandex.net (myt2-accb38a5c431.qloud-c.yandex.net [2a02:6b8:c00:2e9b:0:640:accb:38a5]) by myt5-a43f74ee162a.qloud-c.yandex.net (mxback/Yandex) with ESMTP id JONTfyXDj8-YAGGr0oA; Tue, 12 Jan 2021 16:34:10 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1610458451; bh=DmFDowREJcC239JhN7abJNIi932FZanagnKuQib6sPM=; h=In-Reply-To:From:Date:References:To:Subject:Message-ID; b=Auv8ERlDW124ww58b6XJG8379LrMor6NZj2tlXRHYEat/TgFuJ/S4r9jW3KMgvaXE bfLThALPD0wxwwQpQrK8dqz9W/0HpkUuiRwTDFNBSW7Eh1fp9vzkqC0/MVz7zCKPy6 lBnmPj9QAxBZx6nFysEhBjonQ4bU9ZKC4EoFKFtA= Received: by myt2-accb38a5c431.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id Nan9wQT4CG-YAHelBaW; Tue, 12 Jan 2021 16:34:10 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: Re: FreeBSD does not reply to IPv6 Neighbor Solicitations To: Lutz Donnerhacke , freebsd-net@freebsd.org References: <20210105031528.GA91534@admin.sibptus.ru> <00a101d6e33b$96edf0c0$c4c9d240$@donnerhacke.de> <20210105104650.GA7688@admin.sibptus.ru> <00b601d6e35a$115a4a20$340ede60$@donnerhacke.de> <20210112022525.GN31099@funkthat.com> From: "Andrey V. Elsukov" Message-ID: <95be49e2-56cc-cf3f-3515-8f13f14ddbad@yandex.ru> Date: Tue, 12 Jan 2021 16:33:17 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210112022525.GN31099@funkthat.com> Content-Type: multipart/mixed; boundary="------------120027B1794E44F3043DF14A" Content-Language: en-US X-Rspamd-Queue-Id: 4DFWkv5dgGz3GXp X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yandex.ru header.s=mail header.b=Auv8ERlD; dmarc=pass (policy=none) header.from=yandex.ru; spf=pass (mx1.freebsd.org: domain of bu7cher@yandex.ru designates 2a02:6b8:0:1472:2741:0:8b7:106 as permitted sender) smtp.mailfrom=bu7cher@yandex.ru X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yandex.ru]; R_SPF_ALLOW(-0.20)[+ip6:2a02:6b8:0:1000::/52]; HAS_ATTACHMENT(0.00)[]; MIME_BASE64_TEXT_BOGUS(1.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[yandex.ru:+]; MIME_BASE64_TEXT(0.10)[]; CTYPE_MIXED_BOGUS(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yandex.ru,none]; RCVD_IN_DNSWL_LOW(-0.10)[2a02:6b8:0:1472:2741:0:8b7:106:from]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a02:6b8:0:1472:2741:0:8b7:106:from]; FREEMAIL_ENVFROM(0.00)[yandex.ru]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yandex.ru:dkim]; MIME_TRACE(0.00)[0:+,1:+,2:+]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yandex.ru:s=mail]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; SPAMHAUS_ZRD(0.00)[2a02:6b8:0:1472:2741:0:8b7:106:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MAILMAN_DEST(0.00)[freebsd-net] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2021 13:34:17 -0000 This is a multi-part message in MIME format. --------------120027B1794E44F3043DF14A Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 12.01.2021 05:25, John-Mark Gurney wrote: >> The device, where the capture was taken does not respond tot he NS packet. >> This might be caused by: >> a) the device has a different configured IP address, than requested >> b) the network card does not listen to the multicast group, which is >> used by the request (you see it only due to the promisc mode of the >> capture). But this is unlikely (due to the promisc mode) >> c) your system is broken > > I have some test scripts where something similar to this happens. > > I tcpdump shows the request coming into the FreeBSD box (in this case, > 13-current main-c255640-gc38e59ce1b0), addressed to the IPv6 of the > box, and FreeBSD failing to respond w/ an answer for it's own IP... > > This is inconsistent and hard to reproduce, but it does happen with > somewhat regularity. Hi, when this will happen again, it would be nice to make sure that NS packets hit the IP stack. E.g. with attached dtrace script. Also net.inet6.icmp6.nd6_debug variable should be set to see error messages from ND code. If it doesn't show expected info, this means that packets don't hit IP stack. Probably some multicast related problem. In this case it could be useful to obtain output of ifmcstat(8). -- WBR, Andrey V. Elsukov --------------120027B1794E44F3043DF14A Content-Type: text/plain; charset=UTF-8; name="nd6.d.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="nd6.d.txt" IyEvdXNyL3NiaW4vZHRyYWNlIC1zCgpmYnQ6Om5kNl9uc19pbnB1dDplbnRyeQp7CglpcCA9 IChzdHJ1Y3QgaXA2X2hkciAqKWFyZ3NbMF0tPm1fZGF0YTsKCW5kID0gKHN0cnVjdCBuZF9u ZWlnaGJvcl9zb2xpY2l0ICopYXJnc1swXS0+bV9kYXRhICsgYXJnc1sxXTsKCglwcmludGYo IiVzOiBOUyBmcm9tICVzIHRvICVzLCB0YXJnZXQgJXMiLAoJICAgIHN0cmluZ29mKGFyZ3Nb MF0tPm1fcGt0aGRyLnJjdmlmLT5pZl94bmFtZSksCgkgICAgaW5ldF9udG9hNigmaXAtPmlw Nl9zcmMpLCBpbmV0X250b2E2KCZpcC0+aXA2X2RzdCksCgkgICAgaW5ldF9udG9hNigmbmQt Pm5kX25zX3RhcmdldCkpOwp9CgpmYnQ6Om5kNl9uYV9vdXRwdXRfZmliOmVudHJ5CnsKCglw cmludGYoIiVzOiBOQSB0byAlcywgdGFyZ2V0ICVzIiwKCSAgICBzdHJpbmdvZihhcmdzWzBd LT5pZl94bmFtZSksIGluZXRfbnRvYTYoYXJnc1sxXSksCgkgICAgaW5ldF9udG9hNihhcmdz WzJdKSk7Cn0K --------------120027B1794E44F3043DF14A--