vionet: initial tx only implementation

This commit is contained in:
Matheus
2024-03-29 13:40:21 -03:00
parent 91f69e184d
commit 685e0abeec
3 changed files with 304 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#ifndef _ETH_H
#define _ETH_H
#include <stdint.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
#endif