Commit graph

9 commits

Author SHA1 Message Date
lohhiiccc
1a4a007dbb style: indent and include order 2026-03-19 02:43:46 +01:00
lohhiiccc
87a4650840 feat: add echo payload option 2026-03-08 16:32:04 +01:00
lohhiiccc
865f9d0ccb refactor: move variable declarations to function beginnings 2026-02-07 20:38:19 +01:00
lohhiiccc
85543f3d19 fix(makefile)!: improve flags and type casts for stricter build and correctness
- Update Makefile:
  - Change test binary name to `libicmp.test`.
  - Add `-Wpedantic` and `-Wconversion` to global CFLAGS for stricter
    warnings.
  - Add dedicated `TEST_CFLAGS`.
  - Ensure test build uses `TEST_CFLAGS`.
- Refactor code for better correctness.

BREAKING CHANGE: Test binary is now named `libicmp.test` instead of
`test.out` and stricter compiler flags may trigger new warnings or
errors in code outside this patch.
2026-02-07 20:16:06 +01:00
lohhiiccc
d3daf711b2 fix(send/echo): add byte order conversion for id and seq 2026-02-05 22:31:38 +01:00
lohhiiccc
6cda2e8db5 refactor: standardize code style and improve clarity 2026-02-05 22:26:49 +01:00
lohhiiccc
29904cbec6 refactor: use union instead of bit shifting for echo header 2026-01-27 21:36:26 +01:00
lohhiiccc
bfd61e3636 fix: use generic header_rest field instead of hardcoded id/seq 2026-01-27 05:04:38 +01:00
lohhiiccc
3c56ea024b feat: implement ICMP send/receive modules 2026-01-26 20:12:42 +01:00