Versions Compared

Key

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

...

NetIF_AddrHW_Get()

Anchor12646111264611Get network interface’s hardware address. Anchor10912501091250

Files

Anchor11230411123041net_if.h/net_if.canchor10912521091252

Prototype

...

rowspan4

...

 

Arguments

if_nbr

Network interface number to get the hardware address.

Anchor10912591091259paddr_hw Anchor12534301253430

Pointer to variable that will receive the hardware address.

...

1187562paddr_len Anchor12534371253437

Pointer to a variable to pass the length of the address buffer pointed to by paddr_hw and return the size of the returned hardware address, if no errors.

Anchor10912611091261perr Anchor12534441253444

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

...

NET_IF_ERR_NONE

...

NET_IF_ERR_NULL_PTR

...

NET_IF_ERR_NULL_FNCT

...

NET_IF_ERR_INVALID_IF

...

NET_IF_ERR_INVALID_CFG

...

...

NET_IF_ERR_INVALID_ADDR_LEN

...

NET_OS_ERR_LOCK

...

Returned Value

...

1091270None. Anchor10912711091271

Required Configuration

...

10912721091272None. Anchor10912731091273

Notes / Warnings

...

The hardware address is returned in network-order; i.e., the pointer to the hardware address points to the highest-order byte. Additional error codes may be returned by the specific interface or device driver.