Commit graph

2 commits

Author SHA1 Message Date
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
2e509336c7 feat(utils): add ICMP checksum and time utilities with tests
- Added `icmp_checksum`.
 - Added `icmp_get_time`.
 - Created unit tests for checksum and time.
 - Set `-D_POSIX_C_SOURCE=199309L` in CPPFLAGS for clock_gettime support.
2026-01-24 22:00:24 +01:00