move icmp packet prepartion to file icmp.c
This commit is contained in:
@ -5,9 +5,15 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <byteswap.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#define PACKET_DATA_LENGTH 40
|
||||
|
||||
|
||||
typedef struct s_settings
|
||||
{
|
||||
char *host;
|
||||
@ -27,4 +33,6 @@ typedef struct s_icmp_echo
|
||||
uint8_t data[40];
|
||||
} t_icmp_echo;
|
||||
|
||||
t_icmp_echo prepare_icmp_echo(uint16_t sequence, uint16_t identifier);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user