Prusa MINI Firmware overview
etharp.h File Reference
#include "lwip/arch.h"
#include "lwip/prot/ethernet.h"
#include "lwip/ip4_addr.h"

Go to the source code of this file.

Classes

struct  etharp_hdr
 

Macros

#define ETHARP_HWADDR_LEN   ETH_HWADDR_LEN
 
#define SIZEOF_ETHARP_HDR   28
 

Enumerations

enum  etharp_hwtype { HWTYPE_ETHERNET = 1 }
 
enum  etharp_opcode { ARP_REQUEST = 1, ARP_REPLY = 2 }
 

Variables

PACK_STRUCT_BEGIN struct etharp_hdr PACK_STRUCT_STRUCT
 

Detailed Description

ARP protocol definitions

Macro Definition Documentation

◆ ETHARP_HWADDR_LEN

#define ETHARP_HWADDR_LEN   ETH_HWADDR_LEN

◆ SIZEOF_ETHARP_HDR

#define SIZEOF_ETHARP_HDR   28

Enumeration Type Documentation

◆ etharp_hwtype

Enumerator
HWTYPE_ETHERNET 
76  {
77  HWTYPE_ETHERNET = 1
78  /* others not used */
79 };

◆ etharp_opcode

Enumerator
ARP_REQUEST 
ARP_REPLY 
82  {
83  ARP_REQUEST = 1,
84  ARP_REPLY = 2
85 };

Variable Documentation

◆ PACK_STRUCT_STRUCT

PACK_STRUCT_BEGIN struct etharp_hdr PACK_STRUCT_STRUCT
HWTYPE_ETHERNET
Definition: etharp.h:77
ARP_REQUEST
Definition: etharp.h:83
ARP_REPLY
Definition: etharp.h:84