mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
vionet: initial tx only implementation
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user