Repository navigation
Commit 022147d
authored
feat: add direct ICMP network ping (#324)
## Summary
- Add `network-ping` / `nping` for bounded direct-origin IPv4/IPv6 ICMP checks with resolver-order address selection, per-host loss and latency statistics, and 0/1/255 aggregate exits.
- Honor ssh_config `HostName` and `AddressFamily`, including cluster aliases and scoped IPv6 destinations, without SSH authentication, ProxyJump/ProxyCommand transport, or silent TCP/HTTP fallback.
- Preserve OpenSSH root `-c` (cipher) and `-W` (stdio forwarding): packet count and reply timeout are long-only `--count` and `--timeout`.
- Use datagram-first shared sockets, bounded duplicate-target scheduling, explicit permission diagnostics, and normal formatter output; document Linux/macOS requirements and direct-origin semantics in English/Korean README guidance, the man page, and architecture notes.
- Synchronize existing HOME-sensitive, macOS Keychain, and key-interaction-counter tests after full-suite validation exposed process-global test races.
## Validation
- Full parallel library suite passed: 1,744 passed, 0 failed, 7 ignored. Common SSH config/address-family/ping-exit contracts and all 14 OpenSSH harness selftests passed.
- Twelve focused network-ping/CLI tests and two dispatcher credential-applicability tests passed; targeted Clippy and formatting passed.
- Actual macOS unprivileged IPv4 and IPv6 loopback ICMP smoke tests passed. Linux live ICMP behavior was not manually exercised here; GitHub CI remains a separate merge gate.
Closes #751 parent a0b3470 commit 022147d
15 files changed
Lines changed: 1122 additions & 14 deletions
File tree
- docs/man
- src
- app
- cli
- commands
- ssh
- ssh_config
- tokio_client
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
543 | 547 | | |
544 | 548 | | |
545 | 549 | | |
| |||
552 | 556 | | |
553 | 557 | | |
554 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
555 | 573 | | |
556 | 574 | | |
557 | 575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
442 | 457 | | |
443 | 458 | | |
444 | 459 | | |
| |||
1977 | 1992 | | |
1978 | 1993 | | |
1979 | 1994 | | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
1980 | 2015 | | |
1981 | 2016 | | |
1982 | 2017 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
574 | 575 | | |
575 | 576 | | |
576 | 577 | | |
| 578 | + | |
577 | 579 | | |
578 | 580 | | |
579 | 581 | | |
| |||
595 | 597 | | |
596 | 598 | | |
597 | 599 | | |
598 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
599 | 603 | | |
600 | 604 | | |
601 | 605 | | |
| |||
643 | 647 | | |
644 | 648 | | |
645 | 649 | | |
| 650 | + | |
646 | 651 | | |
647 | 652 | | |
648 | 653 | | |
| |||
830 | 835 | | |
831 | 836 | | |
832 | 837 | | |
833 | | - | |
834 | | - | |
835 | | - | |
| 838 | + | |
| 839 | + | |
836 | 840 | | |
837 | 841 | | |
838 | 842 | | |
| |||
852 | 856 | | |
853 | 857 | | |
854 | 858 | | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
855 | 879 | | |
856 | 880 | | |
857 | 881 | | |
| |||
1466 | 1490 | | |
1467 | 1491 | | |
1468 | 1492 | | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
1469 | 1501 | | |
1470 | 1502 | | |
1471 | 1503 | | |
| |||
1484 | 1516 | | |
1485 | 1517 | | |
1486 | 1518 | | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
1487 | 1524 | | |
1488 | 1525 | | |
1489 | 1526 | | |
| |||
0 commit comments