35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_ping.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2017/04/22 14:10:24 by jhalford #+# #+# */
|
|
/* Updated: 2017/04/22 15:52:07 by jhalford ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef FT_PING_H
|
|
# define FT_PING_H
|
|
|
|
# include "libft.h"
|
|
# include <fcntl.h>
|
|
# include <errno.h>
|
|
# include <sys/socket.h>
|
|
# include <sys/time.h>
|
|
# include <resolv.h>
|
|
# include <netdb.h>
|
|
# include <netinet/in.h>
|
|
# include <netinet/ip.h>
|
|
# include <netinet/ip_icmp.h>
|
|
|
|
#define PACKETSIZE 64
|
|
|
|
struct s_packet
|
|
{
|
|
struct icmp hdr;
|
|
char msg[PACKETSIZE - sizeof(struct icmp)];
|
|
};
|
|
|
|
#endif
|