mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] /etc/hosts: add local ipv6 definitions
Date: Tue, 2 Mar 2021 09:20:53 +0100	[thread overview]
Message-ID: <20210302082053.GO7442@pengutronix.de> (raw)
In-Reply-To: <20210301204103.h7i3iycuxnnmithl@pengutronix.de>

On Mon, Mar 01, 2021 at 09:41:03PM +0100, Uwe Kleine-König wrote:
> On Mon, Mar 01, 2021 at 09:45:35AM +0100, Michael Olbrich wrote:
> > Hi,
> > 
> > On Mon, Mar 01, 2021 at 06:43:40AM +0100, Alexander Dahl wrote:
> > > > Roland Hieber <rhi@pengutronix.de> hat am 26.02.2021 14:24 geschrieben:
> > > > Hmmm, I wonder if this works even if GLOBAL_IPV6 is turned off. Or
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> > 
> > I just tried this:
> > 
> > root@DistroKit:~ ping ip6-localhost
> > PING ip6-localhost (127.0.0.1): 56 data bytes
> > 64 bytes from 127.0.0.1: seq=0 ttl=64 time=9.578 ms
> 
> Does it really say 127.0.0.1 if you ping ip6-localhost?

It does if GLOBAL_IPV6 (and BUSYBOX_FEATURE_IPV6) is disabled.

And for 'ping -4 ip6-localhost' if both are enabled. There seems to be some
kind of fallback for this.

Michael

> On my distrokit build I cannot reproduce that:
> 
> 	root@DistroKit:~ ping -c3 ip6-localhost
> 	PING ip6-localhost (::1): 56 data bytes
> 	64 bytes from ::1: seq=0 ttl=64 time=1.209 ms
> 	64 bytes from ::1: seq=1 ttl=64 time=4.836 ms
> 	64 bytes from ::1: seq=2 ttl=64 time=3.668 ms
> 
> 	--- ip6-localhost ping statistics ---
> 	3 packets transmitted, 3 packets received, 0% packet loss
> 	round-trip min/avg/max = 1.209/3.237/4.836 ms

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

  reply	other threads:[~2021-03-02  8:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-26  9:26 Uwe Kleine-König
2021-02-26 13:24 ` Roland Hieber
2021-03-01  5:43   ` Alexander Dahl
2021-03-01  8:45     ` Michael Olbrich
2021-03-01 18:04       ` Alexander Dahl
2021-03-01 20:41       ` Uwe Kleine-König
2021-03-02  8:20         ` Michael Olbrich [this message]
2021-03-05  7:26 ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210302082053.GO7442@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox