sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
etharp.h File Reference
#include "lwip/arch.h"
#include "lwip/prot/ethernet.h"

Go to the source code of this file.

Classes

struct  ip4_addr_wordaligned
struct  etharp_hdr

Macros

#define ETHARP_HWADDR_LEN   ETH_HWADDR_LEN
#define IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(dest, src)
#define IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(dest, src)
#define SIZEOF_ETHARP_HDR   28

Enumerations

enum  etharp_opcode { ARP_REQUEST = 1 , ARP_REPLY = 2 }

Variables

PACK_STRUCT_BEGIN struct ip4_addr_wordaligned PACK_STRUCT_STRUCT

Detailed Description

ARP protocol definitions

Definition in file etharp.h.

Macro Definition Documentation

◆ ETHARP_HWADDR_LEN

#define ETHARP_HWADDR_LEN   ETH_HWADDR_LEN

Definition at line 49 of file etharp.h.

◆ IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T

#define IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T ( dest,
src )
Value:
SMEMCPY(dest, src, sizeof(ip4_addr_t))
#define SMEMCPY(dst, src, len)
Definition opt.h:145
struct ip4_addr ip4_addr_t
Definition ps2ip_rpc.h:41

MEMCPY-like copying of IP addresses where addresses are known to be 16-bit-aligned if the port is correctly configured (so a port could define this to copying 2 u16_t's) - no NULL-pointer-checking needed.

Definition at line 79 of file etharp.h.

◆ IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T

#define IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T ( dest,
src )
Value:
SMEMCPY(dest, src, sizeof(ip4_addr_t))

MEMCPY-like copying of IP addresses where addresses are known to be 16-bit-aligned if the port is correctly configured (so a port could define this to copying 2 u16_t's) - no NULL-pointer-checking needed.

Definition at line 72 of file etharp.h.

◆ SIZEOF_ETHARP_HDR

#define SIZEOF_ETHARP_HDR   28

Definition at line 103 of file etharp.h.

Enumeration Type Documentation

◆ etharp_opcode

enum etharp_opcode

Definition at line 106 of file etharp.h.