From nobody Wed Dec 15 18:15:47 2021 X-Original-To: freebsd-stable@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 17FC418D4924 for ; Wed, 15 Dec 2021 18:16:16 +0000 (UTC) (envelope-from matpockuh@gmail.com) Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JDk2l2NtZz3KN4 for ; Wed, 15 Dec 2021 18:16:15 +0000 (UTC) (envelope-from matpockuh@gmail.com) Received: by mail-lf1-x12e.google.com with SMTP id z7so44713913lfi.11 for ; Wed, 15 Dec 2021 10:16:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=BDskF4p1gU3SFBRrsGjh+NpsKPyUNLsmlpNaN4PlGDw=; b=ARoABrXDUtQikaC23yVbNTYDwEx59SFxtiNXZCFh1qvtbdjoE/4K9x/ydkom7KK1rl MTmoUfknzQ8LN3nPj/2BYTS3kIXMEQzb0PU75GsgZsT1EOBsK1+cGSTHVcrp28CyuzYg eCRmgoL2DqFKxMptIc8U7MrnOAv2AzDx5hgkTD1yipRXd+2d9mX+zvCUDoiUSWXmFtcp MpCkq911t1fZqR3Yp36cET5CfsLPqajcXKMCZg/6XBFzo+DMx7YKU9VOGQ5WuVrBBX62 Of2WIfBNTFjA6tQYHNd8OgFF7iMjADblesmefNFBGV/OP4ipUoqhkkbDEPqhaE1iMMqt YwcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BDskF4p1gU3SFBRrsGjh+NpsKPyUNLsmlpNaN4PlGDw=; b=cnp8p29lvrWvbNrW2GopUPqueKlVQW+JhEtF2vDuvvvUU4kMCW9uwmt3ZmCGK8/c1z qSa1NymytmblUYib6+Mr9S1TMmCdnaN6mokp30Mb7D5fX+uGCyDCaNe/UwEB1tMpBvhm htqp1kheUwp0l9+xB03TO8MLd53epsxs3bY6CXl7hDnrpJUAofKyt8b2RFyXho+fl4f8 NDeOA8jHA+pMEKzEnaKhT42Erp2OfkS/Chq5Z5N7QsOLlt8lbiwdR1OF4wOBaQCNZTMk kvePjcjervh/bfOi/7sAWC8cVZB7D15apuu4pYHqW6vD+GmGIZqz/u4kiUuvh0vUJirn lwvQ== X-Gm-Message-State: AOAM532fVG3TusntRiYQTbLEGOcXX0OQFGn987uxnhd3gJj37+6rANSc fQLdw4tEttE3KfJfsVl9QC6Nn64RlLS6hkYVCLvNy5FwCO/3ww== X-Google-Smtp-Source: ABdhPJyw4uNyCFq5EJpmr1e2nOaSPhfU1sjwySl6Mvr4LUzqXfBlOzzObNeqpAyj/ZarSMbflqN5fJRERCFWsWI4w0k= X-Received: by 2002:a05:6512:2289:: with SMTP id f9mr10854222lfu.619.1639592168274; Wed, 15 Dec 2021 10:16:08 -0800 (PST) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 From: KOT MATPOCKuH Date: Wed, 15 Dec 2021 21:15:47 +0300 Message-ID: Subject: ping -6 ignores -e parameter To: freebsd-stable List Content-Type: multipart/alternative; boundary="000000000000c43e2d05d3334ccb" X-Rspamd-Queue-Id: 4JDk2l2NtZz3KN4 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=ARoABrXD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of matpockuh@gmail.com designates 2a00:1450:4864:20::12e as permitted sender) smtp.mailfrom=matpockuh@gmail.com X-Spamd-Result: default: False [0.23 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; NEURAL_HAM_LONG(-0.76)[-0.761]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12e:from]; NEURAL_SPAM_SHORT(1.00)[0.995]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --000000000000c43e2d05d3334ccb Content-Type: text/plain; charset="UTF-8" Hello! In a man page for ping(8) and in it's help output I found option "-e": -e gateway Specifies to use gateway as the next hop to the destination. The gateway must be a neighbor of the sending node. I tried to use this argument, ping ignores this parameter and sends the packet via default gateway. For example I have a tun0 which has ipv6 default gw, and an established bridge0 which has available some LL addresses: Neighbor Linklayer Address Netif Expire S Flags fe80::2a0:98ff:fe1d:e270%bridge0 00:a0:98:1d:e2:70 bridge0 23h56m34s S R I tried to run: ping -6 -e FE80::2A0:98FF:FE1D:E270%bridge0 google.com But the packet was sent via tun0 interface. What is wrong with it? -- MATPOCKuH --000000000000c43e2d05d3334ccb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello!

In a man page for pin= g(8) and in it's help output I found option "-e":
= =C2=A0 =C2=A0=C2=A0 -e gateway
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0Specifies to use gateway as the next hop to the destination.=C2=A0 T= he
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0gateway must be a nei= ghbor of the sending node.

I tried to use this arg= ument, ping ignores this parameter and sends the packet via default gateway= .
For example I have a tun0 which has ipv6 default gw, and an est= ablished bridge0 which has available some LL addresses:
Neighbor = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 Linklayer Address =C2=A0Netif Expire =C2=A0 =C2=A0= S Flags
fe80::2a0:98ff:fe1d:e270%bridge0 =C2=A0 =C2=A0 00:a0:98:1d:e2:70= bridge0 23h56m34s S R

I tried to run:
ping -6 -e FE80::2A0:98FF:FE1D:E270%bridge0 google.com
But the packet was sent via tun0 interface.<= /div>

What is wrong with it?

--=
MATPOCKuH
--000000000000c43e2d05d3334ccb--