miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
ethernet.h File Reference
#include <miniOS/types.h>
Include dependency graph for ethernet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ethernet_frame_info_t

Macros

#define ETH_ADDR_LEN   6
#define ETH_HEADER_LEN   14
#define ETH_MIN_FRAME_LEN   60 /* minimum Ethernet frame without FCS */
#define ETHERTYPE_IPV4   0x0800
#define ETHERTYPE_ARP   0x0806

Functions

bool ethernet_frame_info_parse (const void *frame, size_t frame_len, ethernet_frame_info_t *info_out)

Macro Definition Documentation

◆ ETH_ADDR_LEN

#define ETH_ADDR_LEN   6

◆ ETH_HEADER_LEN

#define ETH_HEADER_LEN   14

◆ ETH_MIN_FRAME_LEN

#define ETH_MIN_FRAME_LEN   60 /* minimum Ethernet frame without FCS */

◆ ETHERTYPE_ARP

#define ETHERTYPE_ARP   0x0806

◆ ETHERTYPE_IPV4

#define ETHERTYPE_IPV4   0x0800

Function Documentation

◆ ethernet_frame_info_parse()

bool ethernet_frame_info_parse ( const void * frame,
size_t frame_len,
ethernet_frame_info_t * info_out )
Here is the call graph for this function:
Here is the caller graph for this function: