Files | |
file | ping.c |
Ping application. | |
Defines | |
#define | NAME "Ping" |
Echo module name. | |
Functions | |
int | main (int argc, char *argv[]) |
Module entry point. | |
void | ping_print_help (void) |
Prints the application help. |
#define NAME "Ping" |
Echo module name.
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Module entry point.
Reads command line parameters and pings.
[in] | argc | The number of command line parameters. |
[in] | argv | The command line parameters. |
References AF_INET, AF_INET6, count, EAFNOSUPPORT, ERROR_CODE, ERROR_DECLARE, ERROR_OCCURRED, ERROR_PROPAGATE, icmp_connect_module(), ICMP_CONNECT_TIMEOUT, ICMP_ECHO, icmp_echo_msg(), INET6_ADDRSTRLEN, inet_ntop(), inet_pton(), NAME, parse_address_family(), parse_parameter_int(), parse_parameter_name_int(), ping_print_help(), print_error(), print_unrecognized(), in6_addr::s6_addr, in_addr::s_addr, sockaddr::sa_family, sockaddr_in6::sin6_addr, sockaddr_in6::sin6_family, sockaddr_in::sin_addr, and sockaddr_in::sin_family.
void ping_print_help | ( | void | ) |