42-archive/strace/includes/ping.h
Jack Halford 8bcbafd05c stuff
2017-08-02 19:21:37 +02:00

36 lines
1.3 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>
# include <sys/wait.h>
#define PACKETSIZE 64
struct s_packet
{
struct icmp hdr;
char msg[PACKETSIZE - sizeof(struct icmp)];
};
#endif