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.
IpGetAdapterAddressCount
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
The function returns the count of addresses belonging to the given address family which are assigned to the adapter with the given index.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.
-
addressFamily: The address family of the addresses, the address count will be returned. Possible values are:
- AF_INET (2): IPv4 address family
- AF_INET6 (28): IPv6 address family
Return Values
The count of addresses of the given address family will be returned.- SOCKET_ERROR(-1): The function call failed. Invalid
ifIndexoraddressFamilygiven.