Commit graph

10 commits

Author SHA1 Message Date
lohhiiccc
4b4750cb59 feat: --preload option 2026-04-23 12:59:08 +02:00
lohhiiccc
ce8883d6cd feat: --patern 2026-04-23 12:27:12 +02:00
lohhiiccc
ab1009a2cb refactor: replace src/cli with libcli 2026-03-29 15:33:45 +02:00
lohhiiccc
cdc4df4f85 fix(cli): buffer overflow
add 1 to PING_OPTSTR_LEN for the \0
2026-03-16 11:24:57 -05:00
lohhiiccc
d4dfc554f0 refactor(cli): merge ft_ping.h and ping.h and rename CLI related enums 2026-03-16 09:39:05 -05:00
lohhiiccc
770265ee80 feat: add -M (dont-fragment) option
- Add FLAG_DONT_FRAGMENT flag and cli_handle_dont_fragment handler
- Register -M/--dont-fragment option in the X-macro option table
- Apply DF bit via icmp_set_dont_fragment() before ping loop
- Expand error output: table-driven ICMP error messages and dedicated
  frag-needed output with next-hop MTU
- Add STATIC_ARRAY_FOREACH / COUNT_OF macros to compiler.h
2026-03-13 03:22:14 +01:00
lohhiiccc
a4ed2780f2 feat(cli): add -w/deadline option 2026-03-12 16:11:26 +01:00
lohhiiccc
f59f984a0e refactor(cli): simplfy handle_one_option and coding style improvement
- Fix indentation
- Fix import order
- Simplify handle_one_option
- Fix line too long
2026-03-06 11:09:44 +01:00
lohhiiccc
de872facd3 feat(cli): add error functions and duplicate option tracking for CLI arguments 2026-03-05 19:54:32 +01:00
lohhiiccc
f6ca69f795 feat(cli): refactor CLI move utilities, and improve build/version metadata
- Move CLI internal headers to `includes/internal/cli/`
- Split CLI handler and parsing declarations across dedicated internal headers
- Move handler map to `option_map.c` and properly update references
- Relocate CLI utility source and test files from `utils` to `parse_utils`
- Refactor `cli.h` to only expose the public interface, move internal
  typedefs/functions out
- Update build system: add conditional git commit detection
2026-03-04 14:36:30 +01:00
Renamed from includes/cli_opt.h (Browse further)