feat: yeah lots of things

This commit is contained in:
Emi Aline Boucly 2025-08-23 00:04:19 +02:00
parent 36a83fa185
commit 62ff1a8efb
5 changed files with 225 additions and 0 deletions

18
nethdr.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef NETHDR_H
#define NETHDR_H
#include <stdint.h>
struct arphdr_c {
uint16_t htype;
uint16_t ptype;
uint8_t hlen;
uint8_t plen;
uint16_t opcode;
uint8_t sender_mac[6];
uint8_t sender_ip[4];
uint8_t target_mac[6];
uint8_t target_ip[4];
} __attribute__((packed));
#endif