feat: added basic tcp, udp and icmp handling

This commit is contained in:
Emi Aline Boucly 2025-08-23 00:22:48 +02:00
parent a85bcc8ca2
commit 885be66d5e
5 changed files with 70 additions and 4 deletions

View file

@ -4,10 +4,17 @@
#include "nethdr.h"
#include <stdio.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
int handle_eth(struct ethhdr* eth);
int handle_arp(struct arphdr_c* arp);
int handle_ip(struct iphdr* ip);
int handle_icmp(struct icmphdr* icmp);
int handle_tcp(struct tcphdr* tcp);
int handle_udp(struct udphdr* udp);
#endif