Giter Site home page Giter Site logo

Comments (7)

orf avatar orf commented on May 22, 2024

Ah. Yeah. The regex used to parse the output from ping only handles ipv4 addresses.

I’ll update it

from gping.

orf avatar orf commented on May 22, 2024

Ahh, right. So we need to invoke ping6 instead of ping for ipv6 addresses. This complicates things, let me have a think of the best way to do this.

from gping.

passcod avatar passcod commented on May 22, 2024

Linux ping6 is the same thing as ping since ~2015 or so, though that may be dependent on packaging (because of course).

from gping.

orf avatar orf commented on May 22, 2024

Hey, can either of you run ping ::1 and send me some lines of output here?

from gping.

Revertron avatar Revertron commented on May 22, 2024

From Windows 10:

Pinging ::1 with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

From Debian 10:

PING ::1(::1) 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.054 ms
64 bytes from ::1: icmp_seq=2 ttl=64 time=0.081 ms
64 bytes from ::1: icmp_seq=3 ttl=64 time=0.054 ms
64 bytes from ::1: icmp_seq=4 ttl=64 time=0.102 ms
64 bytes from ::1: icmp_seq=5 ttl=64 time=0.060 ms
^C
--- ::1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 100ms
rtt min/avg/max/mdev = 0.054/0.070/0.102/0.019 ms

from gping.

SOF3 avatar SOF3 commented on May 22, 2024

gping ::1 seems to work for me. Has this issue been fixed or what?
image

Version info:

gping 1.2.0 from crates.io
Linux 5.8.0-44-generic
Ubuntu 20.04.2

ip a output:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever

from gping.

psiman-wandera avatar psiman-wandera commented on May 22, 2024

Hi all, I've tried this on macOs and it doesn't seem to work either.

gping 1.2.1

It just hangs.

ping and ping6 commands output:

ping ::1
ping: cannot resolve ::1: Unknown host
ping6 ::1
PING6(56=40+8+8 bytes) ::1 --> ::1
16 bytes from ::1, icmp_seq=0 hlim=64 time=0.098 ms
^C
--- ::1 ping6 statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.098/0.098/0.098/0.000 ms

Also: I am not if this is related. But for some domains gping -6 HOSTNAME works and for some (resolvable to IPv6 address only) it hangs.

from gping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.