~blainsmith/hare-icmp

Add a _very_ basic ping utility

Currently IPv4 only, for various reasons.

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
Fix memory leak

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
Fix checksum calculation and test it

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
test: properly initialize structs

Not sure this still makes for a good API like this, but just make it
compile for now.

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
test: adapt to memio/bufio changes in stdlib

See https://git.sr.ht/~sircmpwn/hare/commit/ed762a2

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
Reformat according to official style guide

Use tabs for indentation, break README lines at 80 characters.

See https://harelang.org/style/#a-general-conventions

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
working and tested encode/decode for all msg types

Signed-off-by: Blain Smith <rebelgeek@blainsmith.com>
encoding a message

Signed-off-by: Blain Smith <rebelgeek@blainsmith.com>
init

Signed-off-by: Blain Smith <rebelgeek@blainsmith.com>