iPXE
Data Structures | Defines | Functions | Variables
if_ether.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  ethhdr
 An Ethernet link-layer header. More...

Defines

#define ETH_ALEN   6 /* Size of Ethernet address */
#define ETH_HLEN   14 /* Size of ethernet header */
#define ETH_ZLEN   60 /* Minimum packet */
#define ETH_FRAME_LEN   1514 /* Maximum packet */
#define ETH_DATA_ALIGN   2 /* Amount needed to align the data after an ethernet header */
#define ETH_P_RAW   0x0000 /* Raw packet */
#define ETH_P_IP   0x0800 /* Internet Protocl Packet */
#define ETH_P_ARP   0x0806 /* Address Resolution Protocol */
#define ETH_P_RARP   0x8035 /* Reverse Address resolution Protocol */
#define ETH_P_8021Q   0x8100 /* 802.1Q VLAN Extended Header */
#define ETH_P_IPV6   0x86DD /* IPv6 over blueblook */
#define ETH_P_SLOW   0x8809 /* Ethernet slow protocols */
#define ETH_P_EAPOL   0x888E /* 802.1X EAP over LANs */
#define ETH_P_AOE   0x88A2 /* ATA over Ethernet */
#define ETH_P_FCOE   0x8906 /* Fibre Channel over Ethernet */
#define ETH_P_FIP   0x8914 /* FCoE Initialization Protocol */

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
struct ethhdr __attribute__ ((packed))

Variables

uint8_t h_dest [ETH_ALEN]
 Destination MAC address.
uint8_t h_source [ETH_ALEN]
 Source MAC address.
uint16_t h_protocol
 Protocol ID.

Define Documentation

#define ETH_ALEN   6 /* Size of Ethernet address */

Definition at line 8 of file if_ether.h.

Referenced by a3c90x_hw_start(), amd8111e_get_mac_address(), amd8111e_start(), amd8111e_transmit(), ath5k_attach(), ath5k_config(), ath5k_eeprom_read_mac(), ath5k_hw_attach(), ath5k_hw_get_lladdr(), ath5k_hw_set_bssid_mask(), ath5k_hw_set_lladdr(), ath5k_stop(), ath9k_bss_iter(), ath9k_config_bss(), ath9k_init_misc(), ath9k_init_softc(), atl1e_get_permanent_address(), atl1e_probe(), atl1e_up(), axge_open(), axge_probe(), bnx2_probe(), bnx2_transmit(), ccmp_decrypt(), ccmp_encrypt(), cs89x0_probe(), cs89x0_reset(), cs89x0_transmit(), davicom_probe(), davicom_transmit(), dm96xx_read_mac(), dm96xx_write_mac(), dmfe_transmit(), eapol_key_rx(), ecm_fetch_mac(), eepro_probe(), eepro_reset(), eepro_transmit(), efab_probe(), ena_get_device_attributes(), eoib_create(), eoib_find(), epic100_transmit(), eth_eth_addr(), eth_init_addr(), eth_probe(), eth_push(), eth_random_addr(), exanic_probe_port(), falcon_probe_nvram(), fcoe_fip_rx(), flexboot_nodnic_copy_mac(), flexboot_nodnic_register_netdev(), gdbudp_recv(), gdbudp_send(), hermon_bofm_harvest(), hermon_bofm_update(), hermon_register_netdev(), hunt_get_mac(), hunt_mac_addr(), hunt_rx_filter_insert(), hunt_set_mac(), icplus_probe(), ifec_net_open(), ifec_pci_probe(), igbvf_open(), igbvf_probe(), igbvf_reset(), intel_fetch_mac(), intel_fetch_mac_eeprom(), intelx_try_fetch_mac(), intelxl_fetch_mac(), ipoib_probe(), ipoib_translate_rx_arp(), ipoib_translate_tx_arp(), myson_open(), myson_probe(), natsemi_hwaddr_insane(), natsemi_hwaddr_sane(), natsemi_pmatch(), ne_probe(), ne_reset(), ne_transmit(), net80211_handle_assoc_reply(), net80211_handle_auth(), net80211_ll_push(), net80211_prepare_assoc(), net80211_probe_step(), net80211_register(), net80211_rx(), net80211_tx_mgmt(), netfront_read_mac(), ns8390_reset(), ns8390_transmit(), pcnet32_setup_init_block(), pcnet32_setup_mac_addr(), phantom_get_macaddr(), pnic_probe(), realtek_probe(), rhine_probe(), rtl818x_config(), send_test_pkt(), sis190_get_mac_addr_from_apc(), sis190_get_mac_addr_from_eeprom(), sis190_init_rxfilter(), sis630e_get_mac_addr(), sis900_transmit(), skge_devinit(), sky2_init_netdev(), smc9000_transmit(), smsc95xx_vm3_fetch_mac(), smscusb_eeprom_fetch_mac(), smscusb_otp_fetch_mac(), smscusb_set_address(), smscusb_set_filter(), sundance_probe(), sundance_transmit(), t509_enable(), t509_poll(), t509_transmit(), t515_poll(), t515_transmit(), t595_poll(), t595_reset(), t595_transmit(), t5x9_probe(), tkip_michael(), tkip_mix_1(), tlan_transmit(), tulip_probe(), tulip_transmit(), txnic_lmac_probe(), undinet_probe(), virtnet_probe_legacy(), virtnet_probe_modern(), vlan_can_be_trunk(), vlan_create(), vlan_rx(), vlan_transmit(), vmxnet3_get_hw_addr(), vmxnet3_set_ll_addr(), vxge_device_register(), vxge_probe(), w89c840_probe(), w89c840_reset(), w89c840_transmit(), wpa_derive_ptk(), xsmp_rx_xve_install(), and xve_create().

#define ETH_HLEN   14 /* Size of ethernet header */
#define ETH_ZLEN   60 /* Minimum packet */
#define ETH_FRAME_LEN   1514 /* Maximum packet */
#define ETH_DATA_ALIGN   2 /* Amount needed to align the data after an ethernet header */

Definition at line 12 of file if_ether.h.

Referenced by sky2_rx_alloc().

#define ETH_P_RAW   0x0000 /* Raw packet */

Definition at line 17 of file if_ether.h.

#define ETH_P_IP   0x0800 /* Internet Protocl Packet */
#define ETH_P_ARP   0x0806 /* Address Resolution Protocol */
#define ETH_P_RARP   0x8035 /* Reverse Address resolution Protocol */

Definition at line 20 of file if_ether.h.

Referenced by pxenv_undi_isr(), and undinet_transmit().

#define ETH_P_8021Q   0x8100 /* 802.1Q VLAN Extended Header */

Definition at line 21 of file if_ether.h.

#define ETH_P_IPV6   0x86DD /* IPv6 over blueblook */

Definition at line 22 of file if_ether.h.

#define ETH_P_SLOW   0x8809 /* Ethernet slow protocols */

Definition at line 23 of file if_ether.h.

#define ETH_P_EAPOL   0x888E /* 802.1X EAP over LANs */

Definition at line 24 of file if_ether.h.

#define ETH_P_AOE   0x88A2 /* ATA over Ethernet */

Definition at line 25 of file if_ether.h.

#define ETH_P_FCOE   0x8906 /* Fibre Channel over Ethernet */

Definition at line 26 of file if_ether.h.

#define ETH_P_FIP   0x8914 /* FCoE Initialization Protocol */

Definition at line 27 of file if_ether.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
struct ethhdr __attribute__ ( (packed)  )

Variable Documentation

Destination MAC address.

Definition at line 39 of file if_ether.h.

Source MAC address.

Definition at line 41 of file if_ether.h.

Protocol ID.

Definition at line 43 of file if_ether.h.