Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ping6 output on FreeBSD 12 is slightly different that base.py expects #84

Open
sobarber opened this issue Aug 8, 2023 · 0 comments
Open

Comments

@sobarber
Copy link

sobarber commented Aug 8, 2023

ping6 generates output that looks like this on FreeBSD 12:

PING6(56=40+8+8 bytes) 2607:fb90:9233:b34:2e0:67ff:fe2c:8518 --> 2607:f8b0:4023:1004::66
16 bytes from 2607:f8b0:4023:1004::66, icmp_seq=0 hlim=58 time=20.029 ms

--- google.com ping6 statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 20.029/20.029/20.029/0.000 ms

This means that line 52 in gateway/base.py needs to be altered to match 'std-dev' in this output.

pattern = b'(?:rtt|round-trip) min/avg/max(?:/(?:mdev|stddev))? = \d+.\d+/(\d+.\d+)/\d+.\d+(?:/\d+.\d+)? ms'

becomes

pattern = b'(?:rtt|round-trip) min/avg/max(?:/(?:mdev|stddev|std-dev))? = \d+.\d+/(\d+.\d+)/\d+.\d+(?:/\d+.\d+)? ms'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant