posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
if_arp.h File Reference

ARP definitions (<net/if_arp.h>) More...

#include <stdint.h>
#include <zephyr/net/net_ip.h>
Include dependency graph for if_arp.h:

Go to the source code of this file.

Data Structures

struct  arphdr
 ARP packet header (RFC 826). More...
 

Macros

#define ARPOP_REQUEST   1
 ARP request.
 
#define ARPOP_REPLY   2
 ARP reply.
 
#define ARPOP_RREQUEST   3
 RARP request.
 
#define ARPOP_RREPLY   4
 RARP reply.
 
#define ARPOP_InREQUEST   8
 InARP request.
 
#define ARPOP_InREPLY   9
 InARP reply.
 
#define ARPOP_NAK   10
 (ATM) ARP NAK.
 
#define ARPHRD_ETHER   NET_ARPHRD_ETHER
 Ethernet 10/100Mbps.
 
#define ARPHRD_IEEE802   6
 IEEE 802.2 Ethernet/TR/TB.
 
#define ARPHRD_ARCNET   7
 ARCnet.
 
#define ARPHRD_IEEE1394   24
 IEEE 1394 IPv4 - RFC 2734.
 
#define ARPHRD_EUI64   27
 EUI-64.
 
#define ARPHRD_INFINIBAND   32
 InfiniBand.
 
#define ARPHRD_CAN   280
 Controller Area Network.
 
#define ARPHRD_IEEE802154   804
 IEEE 802.15.4.
 
#define ARPHRD_PPP   NET_ARPHRD_PPP
 Point-to-Point Protocol.
 
#define ARPHRD_LOOPBACK   772
 Loopback device.
 

Detailed Description

ARP definitions (<net/if_arp.h>)

Linux/BSD-compatible ARP hardware identifiers, protocol opcodes, and packet header layout. This header is a de-facto (Linux/BSD) extension, not part of POSIX.1; it is provided for source compatibility. ARP hardware types that Zephyr already defines reuse the Zephyr value (NET_ARPHRD_ETHER, NET_ARPHRD_PPP); every identifier is guarded so an application may define its own before including this header.

Definition in file if_arp.h.

Macro Definition Documentation

◆ ARPHRD_ARCNET

#define ARPHRD_ARCNET   7

ARCnet.

Definition at line 61 of file if_arp.h.

◆ ARPHRD_CAN

#define ARPHRD_CAN   280

Controller Area Network.

Definition at line 73 of file if_arp.h.

◆ ARPHRD_ETHER

#define ARPHRD_ETHER   NET_ARPHRD_ETHER

Ethernet 10/100Mbps.

Definition at line 55 of file if_arp.h.

◆ ARPHRD_EUI64

#define ARPHRD_EUI64   27

EUI-64.

Definition at line 67 of file if_arp.h.

◆ ARPHRD_IEEE1394

#define ARPHRD_IEEE1394   24

IEEE 1394 IPv4 - RFC 2734.

Definition at line 64 of file if_arp.h.

◆ ARPHRD_IEEE802

#define ARPHRD_IEEE802   6

IEEE 802.2 Ethernet/TR/TB.

Definition at line 58 of file if_arp.h.

◆ ARPHRD_IEEE802154

#define ARPHRD_IEEE802154   804

IEEE 802.15.4.

Definition at line 76 of file if_arp.h.

◆ ARPHRD_INFINIBAND

#define ARPHRD_INFINIBAND   32

InfiniBand.

Definition at line 70 of file if_arp.h.

◆ ARPHRD_LOOPBACK

#define ARPHRD_LOOPBACK   772

Loopback device.

Definition at line 82 of file if_arp.h.

◆ ARPHRD_PPP

#define ARPHRD_PPP   NET_ARPHRD_PPP

Point-to-Point Protocol.

Definition at line 79 of file if_arp.h.

◆ ARPOP_InREPLY

#define ARPOP_InREPLY   9

InARP reply.

Definition at line 47 of file if_arp.h.

◆ ARPOP_InREQUEST

#define ARPOP_InREQUEST   8

InARP request.

Definition at line 44 of file if_arp.h.

◆ ARPOP_NAK

#define ARPOP_NAK   10

(ATM) ARP NAK.

Definition at line 50 of file if_arp.h.

◆ ARPOP_REPLY

#define ARPOP_REPLY   2

ARP reply.

Definition at line 35 of file if_arp.h.

◆ ARPOP_REQUEST

#define ARPOP_REQUEST   1

ARP request.

Definition at line 32 of file if_arp.h.

◆ ARPOP_RREPLY

#define ARPOP_RREPLY   4

RARP reply.

Definition at line 41 of file if_arp.h.

◆ ARPOP_RREQUEST

#define ARPOP_RREQUEST   3

RARP request.

Definition at line 38 of file if_arp.h.