Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
IpGetAdapterMacId
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long IpGetAdapterMacId( dword ifIndex, byte macId[]); // form 1qword IpGetAdapterMacId( dword ifIndex ); // form 2
Description
The function returns the MAC ID of the given interface.Parameters
- ifIndex: The 1-based network interface index. All adapter addresses including the local loopback address are taken into account in the stack of the operating system. The order depends on how the operating system lists the adapters. All assigned addresses including the VLAN addresses are taken into account in the CANoe DE product stack.
- macId: A byte array of 6 bytes size to return the MAC ID.
Return Values
-
Form 1
0: The function completed successfully.WSA_INVALID_PARAMETER (87): The specified network interface index was invalid.WSAEADDRNOTAVAIL (10049): No MAC ID found.
-
Form 2
- The MAC address as qword or 0, if failed