18 lines
313 B
C
18 lines
313 B
C
#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
|