Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of OmniWheels by
Ethernet
[Callback-style APIs]
Enumerations | |
enum | eth_type { ETHTYPE_IP = 0x0800U, ETHTYPE_ARP = 0x0806U, ETHTYPE_WOL = 0x0842U, ETHTYPE_RARP = 0x8035U, ETHTYPE_VLAN = 0x8100U, ETHTYPE_IPV6 = 0x86DDU, ETHTYPE_PPPOEDISC = 0x8863U, ETHTYPE_PPPOE = 0x8864U, ETHTYPE_JUMBO = 0x8870U, ETHTYPE_PROFINET = 0x8892U, ETHTYPE_ETHERCAT = 0x88A4U, ETHTYPE_LLDP = 0x88CCU, ETHTYPE_SERCOS = 0x88CDU, ETHTYPE_MRP = 0x88E3U, ETHTYPE_PTP = 0x88F7U, ETHTYPE_QINQ = 0x9100U } |
A list of often ethtypes (although lwIP does not use all of them): More... | |
Functions | |
err_t | ethernet_input (struct pbuf *p, struct netif *netif) |
Process received ethernet frames. |
Enumeration Type Documentation
enum eth_type |
A list of often ethtypes (although lwIP does not use all of them):
- Enumerator:
Definition at line 108 of file lwip/prot/lwip_ethernet.h.
Function Documentation
Process received ethernet frames.
Using this function instead of directly calling ip_input and passing ARP frames through etharp in ethernetif_input, the ARP cache is protected from concurrent access.
Don't call directly, pass to netif_add() and call netif->input().
- Parameters:
-
p the received packet, p->payload pointing to the ethernet header netif the network interface on which the packet was received
- See also:
- LWIP_HOOK_UNKNOWN_ETH_PROTOCOL
- ETHARP_SUPPORT_VLAN
- LWIP_HOOK_VLAN_CHECK
Send an ethernet packet on the network using netif->linkoutput(). The ethernet header is filled in before sending.
- See also:
- LWIP_HOOK_VLAN_SET
- Parameters:
-
netif the lwIP network interface on which to send the packet p the packet to send. pbuf layer must be PBUF_LINK. src the source MAC address to be copied into the ethernet header dst the destination MAC address to be copied into the ethernet header eth_type ethernet type (eth_type)
- Returns:
- ERR_OK if the packet was sent, any other err_t on failure
Definition at line 81 of file lwip_ethernet.c.
Generated on Fri Jul 22 2022 04:54:09 by
