From nobody Wed Dec 15 18:32:00 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 988BC18D878F for ; Wed, 15 Dec 2021 18:32:17 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (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 4JDkPF3sNHz3MhQ for ; Wed, 15 Dec 2021 18:32:17 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-ot1-f46.google.com with SMTP id i5-20020a05683033e500b0057a369ac614so25983203otu.10 for ; Wed, 15 Dec 2021 10:32:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zInWjtJH1Uq338zCysszwC02IIXSyxw99aWuXdQtJIA=; b=1+3MHwgnbRMN+x7t3uHHqOldJU+tFPQWamsavNvrKZt4zRJxfVP6dxtgx0f2vOj4Jv za5mgFTukHygwdN4aqhrZNOSEzJKw2cHRK02vOOG/kGdTKmck69LJv9Y69rqBAolsJVu u5crt80abMgtOcH0VF1rQC9gltnjddUrpEHDts8eZuJEnTNaayIJuLALZXcNDzZ4nAFV 9ie/yVCu0udbxX5fFzfqzM4ei3UMAfmhCN2+nDIthK5oc02swvvLe01ZOsLSTFoJum9W IvjoqtEAd4z+CriOPb2jl/2evk/CEs7AkRsNbNAybxi0rrN9VYsJ7IfeZgCQptUzsBJy 0CxQ== X-Gm-Message-State: AOAM533bPJf+a0HSPc5/721GG13omf8cyPjub0kdT6Vtyzpf/vLjcL4l xqvcr9xwf/t7d7XMDfljT0ri3TPrwKM4RD3UEqc= X-Google-Smtp-Source: ABdhPJwHzs1hX9juWJrmPrs1ixuEdhqbmq9KcauZzlXmiNWve3OLLTDViKgQ88HLmZBPvs9dJzvh2UKDLB1YRdp74Ys= X-Received: by 2002:a9d:6d98:: with SMTP id x24mr9485555otp.371.1639593131162; Wed, 15 Dec 2021 10:32:11 -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 References: In-Reply-To: From: Alan Somers Date: Wed, 15 Dec 2021 11:32:00 -0700 Message-ID: Subject: Re: ping -6 ignores -e parameter To: KOT MATPOCKuH Cc: freebsd-stable List Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4JDkPF3sNHz3MhQ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, Dec 15, 2021 at 11:16 AM KOT MATPOCKuH wrote: > > 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 What version of FreeBSD are you using? There was a major change to ping's code in FreeBSD 13. Please show the output of 'freebsd-version' and 'netstat -rn'. -Alan