diff options
| author | user <user@clank> | 2026-07-17 15:23:03 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-07-17 15:23:03 +0200 |
| commit | 7f01a9e22f8a19109daf56356a0bb8636af67a84 (patch) | |
| tree | 8a1dc44046d5e8ae83819c1422154e6f58de3cf0 /tools | |
| parent | net: pump the network from the console wait (answer pings at the prompt) (diff) | |
| download | gbos-7f01a9e22f8a19109daf56356a0bb8636af67a84.tar.gz gbos-7f01a9e22f8a19109daf56356a0bb8636af67a84.tar.xz gbos-7f01a9e22f8a19109daf56356a0bb8636af67a84.zip | |
net: ping resolves hostnames (ping sl0p.foo, not just ping 1.2.3.4)
ping used parse_ip only, so a hostname gave "bad address". It now uses resolve.h
(like wget/nslookup): dotted-quad is used as-is, a name is looked up via DNS
first. Copies the arg to a safe buffer before resolving (the 0xA000 arg/_DATA
overlap dance).
Verified through DHCP + NAT:
/# ping sl0p.foo
PING 80.78.19.56
reply from 80.78.19.56 seq=1 ... -- 4/4 received
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
