initial commit

This commit is contained in:
2024-09-12 03:30:13 +02:00
commit c32e36c7e1
3 changed files with 111 additions and 0 deletions

23
ft_ping.h Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include <inttypes.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include <netinet/in.h>
#include <netinet/ip_icmp.h>
#include <arpa/inet.h>
#include <netdb.h>
struct t_socket
{
struct sockaddr_in dst, src;
int fd;
int len;
};