Skip to content

pinger/src/linux.rs: use "ping -6" instead of "ping6"#546

Open
ryanmjacobs wants to merge 1 commit into
orf:masterfrom
ryanmjacobs:linux-ping6
Open

pinger/src/linux.rs: use "ping -6" instead of "ping6"#546
ryanmjacobs wants to merge 1 commit into
orf:masterfrom
ryanmjacobs:linux-ping6

Conversation

@ryanmjacobs

@ryanmjacobs ryanmjacobs commented Oct 6, 2025

Copy link
Copy Markdown

pinger/src/linux.rs: use "ping -6" instead of "ping6"
ping6 does not exist on my system (iputils 20250605-1)

gping -6 fails otherwise.

$ gping -6 example.com
Error: Error spawning ping: No such file or directory (os error 2)

Caused by:
    No such file or directory (os error 2)

Note: Probably don't need to modify the BusyBox command.
However, busybox ping supports the same -4/-6 flags:

$ busybox ping --help
...
-4,-6           Force IP or IPv6 name resolution

`ping6` does not exist on my system (`iputils 20250605-1`)

`gping -6` fails otherwise.

```
$ gping -6 example.com
Error: Error spawning ping: No such file or directory (os error 2)

Caused by:
    No such file or directory (os error 2)
```

Note: Probably don't need to modify the BusyBox command.
However, `busybox ping` supports the same `-4/-6` flags:
```
$ busybox ping --help
...
-4,-6           Force IP or IPv6 name resolution
```
@ryanmjacobs ryanmjacobs force-pushed the linux-ping6 branch 2 times, most recently from c1a6605 to 7ef8e1d Compare December 1, 2025 09:13
@ryanmjacobs

Copy link
Copy Markdown
Author

@orf Do you mind reviewing this PR? Without it, I have to copy around a self-compiled to newer systems. Thanks!

@sedlund

sedlund commented Jun 17, 2026

Copy link
Copy Markdown

The patch is now carried in nixpkgs NixOS/nixpkgs#513871 and available in current branches.

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

Successfully merging this pull request may close these issues.

2 participants