Open topic with navigation CAPL Functions » TCP/IP API » IpGetAdapterMaskDocumentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
IpGetAdapterMask
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long IpGetAdapterMask( dword ifIndex, dword mask[], dword maskSize); // form 1long IpGetAdapterMask( dword ifIndex, IP_Address addressMasks[], dword &count); // form 2
Description
The function retrieves the address masks (subnet masks) associated with the specified network 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.
- maskSize: The size of the mask array.
- count: The size of the mask array.
- mask: The array used to store the numerical IPv4 address masks.
- addressMasks: Address masks are copied to this array.
Return Values
- 0: The function completed successfully.
- ERROR_NOT_ENOUGH_MEMORY (8): The mask array was insufficient.
- WSA_INVALID_PARAMETER (87): The specified network interface index was invalid.
- WSAEADDRNOTAVAIL (10049): No adapter address available.