etharp_raw() is only used within LwIP.
 
Symbols
loading...
Files
loading...

etharp_raw() function

Send a raw ARP packet (opcode and all addresses can be modified)

Syntax

static err_t etharp_raw(struct netif *netif,     const struct eth_addr *ethsrc_addr,     const struct eth_addr *ethdst_addr,     const struct eth_addr *hwsrc_addr,     const ip4_addr_t *ipsrc_addr,     const struct eth_addr *hwdst_addr,     const ip4_addr_t *ipdst_addr,     const u16_t opcode);
Implemented in etharp.c:1100

Arguments

netif

the lwip network interface on which to send the ARP packet

ethsrc_addr

the source MAC address for the ethernet header

ethdst_addr

the destination MAC address for the ethernet header

hwsrc_addr

the source MAC address for the ARP protocol header

ipsrc_addr

the source IP address for the ARP protocol header

hwdst_addr

the destination MAC address for the ARP protocol header

ipdst_addr

the destination IP address for the ARP protocol header

opcode

the type of the ARP packet

Return value

ERR_OK if the ARP packet has been sent ERR_MEM if the ARP packet couldn't be allocated any other err_t on failure

References

LocationReferrerText
etharp.c:1101
etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr,
etharp.c:134
static err_t etharp_raw(struct netif *netif,
etharp.c:709etharp_input()
etharp_raw(netif,
etharp.c:1183etharp_request_dst()
return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr,