Files
Astral/kernel-src/include/kernel/eth.h
T
2026-09-10 15:38:50 -03:00

20 lines
342 B
C

#ifndef _ETH_H
#define _ETH_H
#include <stddef.h>
#include <stdint.h>
#include <kernel/net.h>
typedef struct {
uint8_t destination[6];
uint8_t source[6];
uint16_t type;
} __attribute__((packed)) ethframe_t;
#define ETH_PROTO_IP 0x0800
#define ETH_PROTO_ARP 0x0806
void eth_process(netdev_t *netdev, void *buffer, size_t size);
#endif