version 0.0.1

This commit is contained in:
2021-10-23 16:53:40 +02:00
parent 24b5baf73b
commit 1c64f34ef4
92 changed files with 39959 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include <rte_byteorder.h>
#include <rte_common.h>
#define RTE_ETHER_ADDR_LEN 6
struct rte_ether_addr {
uint8_t addr_bytes[RTE_ETHER_ADDR_LEN];
} __attribute__((__packed__));
struct rte_ether_hdr {
struct rte_ether_addr d_addr;
RTE_STD_C11
union {
struct rte_ether_addr s_addr;
struct {
struct rte_ether_addr S_addr;
} S_un;
};
rte_be16_t ether_type;
} __attribute__((__packed__));