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.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
Ethernet
["raw" APIs]
Functions | |
err_t | ethernet_input (struct pbuf *p, struct netif *netif) |
Process received ethernet frames. |
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 (lwip_ieee_eth_type)
- Returns:
- ERR_OK if the packet was sent, any other err_t on failure
Definition at line 76 of file lwip_ethernet.c.
Generated on Tue Jul 12 2022 13:55:24 by
