|
iPXE
|
Address Resolution Protocol constants and types. More...
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | arphdr |
| An ARP header. More... | |
Macros | |
| #define | ARPHRD_NETROM 0 |
| from KA9Q: NET/ROM pseudo | |
| #define | ARPHRD_ETHER 1 |
| Ethernet 10Mbps. | |
| #define | ARPHRD_EETHER 2 |
| Experimental Ethernet. | |
| #define | ARPHRD_AX25 3 |
| AX.25 Level 2. | |
| #define | ARPHRD_PRONET 4 |
| PROnet token ring. | |
| #define | ARPHRD_CHAOS 5 |
| Chaosnet. | |
| #define | ARPHRD_IEEE802 6 |
| IEEE 802.2 Ethernet/TR/TB. | |
| #define | ARPHRD_ARCNET 7 |
| ARCnet. | |
| #define | ARPHRD_APPLETLK 8 |
| APPLEtalk. | |
| #define | ARPHRD_DLCI 15 |
| Frame Relay DLCI. | |
| #define | ARPHRD_ATM 19 |
| ATM. | |
| #define | ARPHRD_METRICOM 23 |
| Metricom STRIP (new IANA id) | |
| #define | ARPHRD_IEEE1394 24 |
| IEEE 1394 IPv4 - RFC 2734. | |
| #define | ARPHRD_EUI64 27 |
| EUI-64. | |
| #define | ARPHRD_INFINIBAND 32 |
| InfiniBand. | |
| #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 | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| struct arphdr | __attribute__ ((packed)) |
| static void * | arp_sender_ha (struct arphdr *arphdr) |
| ARP packet sender hardware address. | |
| static void * | arp_sender_pa (struct arphdr *arphdr) |
| ARP packet sender protocol address. | |
| static void * | arp_target_ha (struct arphdr *arphdr) |
| ARP packet target hardware address. | |
| static void * | arp_target_pa (struct arphdr *arphdr) |
| ARP packet target protocol address. | |
| static size_t | arp_len (struct arphdr *arphdr) |
| ARP packet length. | |
Variables | |
| uint16_t | ar_hrd |
| Link-layer protocol. | |
| uint16_t | ar_pro |
| Network-layer protocol. | |
| uint8_t | ar_hln |
| Link-layer address length. | |
| uint8_t | ar_pln |
| Network-layer address length. | |
| uint16_t | ar_op |
| ARP opcode. | |
| #define ARPHRD_ETHER 1 |
Ethernet 10Mbps.
Definition at line 17 of file if_arp.h.
Referenced by eapol_probe(), fcoe_probe(), gdbudp_recv(), and ipoib_translate_rx_arp().
| #define ARPHRD_INFINIBAND 32 |
| #define ARPOP_REQUEST 1 |
ARP request.
Definition at line 33 of file if_arp.h.
Referenced by arp_rx(), arp_tx_request(), and gdbudp_recv().
| #define ARPOP_REPLY 2 |
ARP reply.
Definition at line 34 of file if_arp.h.
Referenced by arp_rx(), gdbudp_recv(), ipoib_translate_rx_arp(), and ipoib_translate_tx_arp().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| struct arphdr __attribute__ | ( | (packed) | ) |
|
inlinestatic |
ARP packet sender hardware address.
| arphdr | ARP header |
| ar_sha | Sender hardware address |
Definition at line 72 of file if_arp.h.
Referenced by arp_rx(), arp_sender_pa(), gdbudp_recv(), ipoib_translate_rx_arp(), and ipoib_translate_tx_arp().
|
inlinestatic |
ARP packet sender protocol address.
| arphdr | ARP header |
| ar_spa | Sender protocol address |
Definition at line 81 of file if_arp.h.
References arphdr::ar_hln, and arp_sender_ha().
Referenced by arp_rx(), arp_target_ha(), gdbudp_recv(), ipoib_translate_rx_arp(), and ipoib_translate_tx_arp().
|
inlinestatic |
ARP packet target hardware address.
| arphdr | ARP header |
| ar_tha | Target hardware address |
Definition at line 90 of file if_arp.h.
References arphdr::ar_pln, and arp_sender_pa().
Referenced by arp_rx(), arp_target_pa(), gdbudp_recv(), ipoib_translate_rx_arp(), and ipoib_translate_tx_arp().
|
inlinestatic |
ARP packet target protocol address.
| arphdr | ARP header |
| ar_tpa | Target protocol address |
Definition at line 99 of file if_arp.h.
References arphdr::ar_hln, and arp_target_ha().
Referenced by arp_rx(), gdbudp_recv(), ipoib_translate_rx_arp(), and ipoib_translate_tx_arp().
ARP packet length.
| arphdr | ARP header |
| len | Length (including header) |
Definition at line 108 of file if_arp.h.
References arphdr::ar_hln, and arphdr::ar_pln.
Referenced by arp_rx().
| uint16_t ar_hrd |
| uint16_t ar_pro |