TCPIP_STACK_NetAddressMac Function
C
const uint8_t* TCPIP_STACK_NetAddressMac(
TCPIP_NET_HANDLE netH
);
Description
This function returns the network interface physical (MAC) address. The interface should be enabled for this function to work.
Preconditions
The TCPIP_STACK_Initialize() function must have been called before calling this function. The network interface should be up and running.
Parameters
Parameters | Description |
---|---|
netH | Interface handle to get the address of. |
Returns
Constant pointer to the MAC address.
0 if no such interface exists.
Remarks
None.
Example
TCPIP_NET_HANDLE netH = TCPIP_STACK_NetHandleGet("PIC32INT");
const TCPIP_MAC_ADDR* pAdd = TCPIP_STACK_NetAddressMac(netH);