![]() |
ETHFW API Guide
|
Functions | |
| int32_t | EthFwArp_getHwAddr (const ip4_addr_t *ipAddr, struct eth_addr *hwAddr, uint16_t vlanId) |
| Get MAC address corresponding to a registered client's IPv4 address. More... | |
| void | EthFwArp_sendRaw (struct netif *netif, const struct eth_addr *ethSrcAddr, const struct eth_addr *ethDstAddr, const struct eth_addr *hwSrcAddr, const ip4_addr_t *ipSrcAddr, const struct eth_addr *hwDstAddr, const ip4_addr_t *ipDstAddr, uint16_t vlanId, const u16_t opcode) |
| Sends ARP response on behalf of a registered remote client. More... | |
| int32_t EthFwArp_getHwAddr | ( | const ip4_addr_t * | ipAddr, |
| struct eth_addr * | hwAddr, | ||
| uint16_t | vlanId | ||
| ) |
Get MAC address corresponding to a registered client's IPv4 address.
Get the MAC address of a remote client that has previously registered its MAC address and IPv4 address with Ethernet Firmware through ETHREMOTECFG_CMD_REGISTER_IPv4 command.
| ipAddr | IPv4 address |
| hwAddr | MAC address corresponding to the IPv4 (if registered) |
| vlanId | VLAN id |
| void EthFwArp_sendRaw | ( | struct netif * | netif, |
| const struct eth_addr * | ethSrcAddr, | ||
| const struct eth_addr * | ethDstAddr, | ||
| const struct eth_addr * | hwSrcAddr, | ||
| const ip4_addr_t * | ipSrcAddr, | ||
| const struct eth_addr * | hwDstAddr, | ||
| const ip4_addr_t * | ipDstAddr, | ||
| uint16_t | vlanId, | ||
| const u16_t | opcode | ||
| ) |
Sends ARP response on behalf of a registered remote client.
Sends an ARP response on behalf of a remote client that has previously registers its MAC address and IPv4 address with Ethernet Firmware through ETHREMOTECFG_CMD_REGISTER_IPv4 command.
This function is based on lwIP's etharp_raw().
| netif | Enet netif on which ARP response will be sent |
| ethSrcAddr | Source MAC address for the Ethernet header |
| ethDstAddr | Destination MAC address for the Ethernet header |
| hwSrcAddr | Source MAC address for the ARP protocol header |
| ipSrcAddr | Source IP address for the ARP protocol header |
| hwDstAddr | Destination MAC address for the ARP protocol header |
| ipDstAddr | Destination IP address for the ARP protocol header |
| vlanId | VLAN id |
| opcode | Type of the ARP packet |