- 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
21 lines
787 B
C
21 lines
787 B
C
#ifndef PING_CLI_HANDLERS_H
|
|
#define PING_CLI_HANDLERS_H
|
|
|
|
#include "cli.h"
|
|
|
|
extern const struct option_descriptor g_options[];
|
|
|
|
int cli_handle_count(const char *arg, void *config);
|
|
int cli_handle_dont_fragment(const char *arg, void *config);
|
|
int cli_handle_deadline(const char *arg, void *config);
|
|
int cli_handle_flood(const char *arg, void *config);
|
|
int cli_handle_help(const char *arg, void *config);
|
|
int cli_handle_interval(const char *arg, void *config);
|
|
int cli_handle_quiet(const char *arg, void *config);
|
|
int cli_handle_size(const char *arg, void *config);
|
|
int cli_handle_timeout(const char *arg, void *config);
|
|
int cli_handle_ttl(const char *arg, void *config);
|
|
int cli_handle_verbose(const char *arg, void *config);
|
|
int cli_handle_version(const char *arg, void *config);
|
|
|
|
#endif
|