Commit graph

4 commits

Author SHA1 Message Date
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
ace00ea0f2 feat: rework icmp_parse_ip_header
Extend icmp_parse_ip_header to allow optional extraction of destination
IP address and protocol from the IP header
2026-02-05 22:26:49 +01:00
lohhiiccc
d453ef8bed feat(packet): add ICMP/IP packet build and parse helpers 2026-01-25 01:44:00 +01:00