Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NetARP_CacheGetAddrHW()

...

12642821264282Get the hardware address corresponding to a specific ARP cache’s protocol address. Anchor10902771090277

Files

...

10902781090278net_arp.h/net_arp.c Anchor10902791090279 Prototype

...

rowspan5

...

Anchor10902851090285 Arguments Anchor10902861090286 paddr_hw Anchor12508011250801

Prototype

 

Arguments

paddr_hw

Pointer to a memory buffer that will receive the hardware address:

...

...

Hardware address that corresponds to the desired protocol address, if no errors; hardware address cleared to all zeros, otherwise.

...

addr_hw_len_bufanchor12508261250826

Size of hardware address memory buffer (in bytes).

...

paddr_protocolanchor12508331250833

Pointer to the specific protocol address.

...

addr_protocol_len Anchor12508401250840

Length of protocol address (in bytes).

...

perr Anchor12508471250847

Pointer to variable that will receive the error code from this function:

...

...

...

NET_ARP_ERR_NULL_PTR

...

NET_ARP_ERR_INVALID_HW_ADDR_LEN

...

NET_ARP_ERR_INVALID_PROTOCOL_ADDR_LEN

...

NET_ARP_ERR_CACHE_NOT_FOUND

...

NET_ARP_ERR_CACHE_PEND

...

...

Returned Value

...

Length of returned hardware address, if available; Anchor12222461222246

0, otherwise. Anchor12222411222241

Required Configuration

...

10903041090304Available only if an appropriate network interface layer is present (e.g., Ethernet; see section D-7-3 on page 748). Anchor10903051090305

Notes / Warnings

...

NetARP_CacheGetAddrHW() may be used in conjunction with NetARP_ProbeAddrOnNet() to determine if a specific protocol address is available on the local network.