lwIP  2.0.1
Lightweight IP stack

Enumerations

Functions

err_t ethernet_output (struct netif *netif, struct pbuf *p, const struct eth_addr *src, const struct eth_addr *dst, u16_t eth_type)
 

Detailed Description

Enumeration Type Documentation

enum eth_type

A list of often ethtypes (although lwIP does not use all of them):

Enumerator
ETHTYPE_IP 

Internet protocol v4

ETHTYPE_ARP 

Address resolution protocol

ETHTYPE_WOL 

Wake on lan

ETHTYPE_RARP 

RARP

ETHTYPE_VLAN 

Virtual local area network

ETHTYPE_IPV6 

Internet protocol v6

ETHTYPE_PPPOEDISC 

PPP Over Ethernet Discovery Stage

ETHTYPE_PPPOE 

PPP Over Ethernet Session Stage

ETHTYPE_JUMBO 

Jumbo Frames

ETHTYPE_PROFINET 

Process field network

ETHTYPE_ETHERCAT 

Ethernet for control automation technology

ETHTYPE_LLDP 

Link layer discovery protocol

ETHTYPE_SERCOS 

Serial real-time communication system

ETHTYPE_MRP 

Media redundancy protocol

ETHTYPE_PTP 

Precision time protocol

ETHTYPE_QINQ 

Q-in-Q, 802.1ad

Function Documentation

err_t ethernet_output ( struct netif netif,
struct pbuf p,
const struct eth_addr *  src,
const struct eth_addr *  dst,
u16_t  eth_type 
)

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
netifthe lwIP network interface on which to send the packet
pthe packet to send. pbuf layer must be PBUF_LINK.
srcthe source MAC address to be copied into the ethernet header
dstthe destination MAC address to be copied into the ethernet header
eth_typeethernet type (eth_type)
Returns
ERR_OK if the packet was sent, any other err_t on failure