Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
|
|
This is supposed to serve as a reminder if and when someone decides to make
the 'msg' field configurable.
|
|
This enables a nice warning in case a function becomes dead code.
|
|
|
|
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.
|
|
|
|
/bin/ping is now setuid-root, and will drop privileges immediately
after opening a raw socket.
|
|
This also fixes the build, since ping.cpp already had a timersub().
|
|
|
|
|
|
|
|
I'm now able to connect to a simple UDP server on my host machine and
exchange some data. Very cool! :^)
|
|
|
|
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.
|
|
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.
|
|
All ICMP sockets now receive all ICMP packets. All this buffering is gonna
need some limits and such.
|
|
The first userland networking program will be "ping" :^)
|