summaryrefslogtreecommitdiff
path: root/Userland/ping.cpp
AgeCommit message (Collapse)Author
2020-11-10Userland: Basic statistics for pingmarprok
After ping is terminated, the min/avg/max time as well as information about the number of successful packets received are printed on the screen.
2020-10-31ping: Account for raw sockets now receiving IPv4 headersAndreas Kling
2020-08-30Everywhere: Port to String::copy_characters_to_buffer()Sergey Bugaev
2020-08-24Userland: Prefer strlcpy over strcpy in pingBen Wiederhake
This is supposed to serve as a reminder if and when someone decides to make the 'msg' field configurable.
2020-08-12Userland: Mark compilation-unit-only functions as staticBen Wiederhake
This enables a nice warning in case a function becomes dead code.
2020-08-06Userland: Use Core::ArgsParser for 'ping'Linus Groh
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2020-01-11ping: Use pledge()Andreas Kling
2019-12-31Kernel+ping: Only allow superuser to create SOCK_RAW socketsAndreas Kling
/bin/ping is now setuid-root, and will drop privileges immediately after opening a raw socket.
2019-12-27LibC+ping: Let's use the traditional timersub() et al prototypesAndreas Kling
This also fixes the build, since ping.cpp already had a timersub().
2019-06-07Userland: Run clang-format on everything.Andreas Kling
2019-03-27LibC: Time-related POSIX compliance fixes.Andreas Kling
2019-03-20Userland: Allow ping <hostname> :^)Andreas Kling
2019-03-13IPv4: More work on UDP support.Andreas Kling
I'm now able to connect to a simple UDP server on my host machine and exchange some data. Very cool! :^)
2019-03-13Kernel: recvfrom() should treat the address arguments as outparams.Andreas Kling
2019-03-13Add support for socket send/receive timeouts.Andreas Kling
Only the receive timeout is hooked up yet. You can change the timeout by calling setsockopt(..., SOL_SOCKET, SO_RCVTIMEO, ...). Use this mechanism to make /bin/ping report timeouts.
2019-03-13More work on IPv4 sockets and /bin/ping.Andreas Kling
It's now actually possible to ping other hosts on the network! :^) I've switched the "run" script over to starting QEMU with user networking since that works better for my testing needs right now.
2019-03-12Kernel+LibC+Userland: Yet more networking bringup hacking.Andreas Kling
All ICMP sockets now receive all ICMP packets. All this buffering is gonna need some limits and such.
2019-03-12Kernel+LibC+Userland: Start working on an IPv4 socket backend.Andreas Kling
The first userland networking program will be "ping" :^)