feat: added basic tcp, udp and icmp handling
This commit is contained in:
parent
a85bcc8ca2
commit
885be66d5e
5 changed files with 70 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue