MIB_IPADDRROW (Compact 2013)

3/26/2014

This structure specifies information for a particular IP address.

Syntax

typedef struct _MIB_IPADDRROW {
  DWORD dwAddr; 
  DWORD dwIndex; 
  DWORD dwMask; 
  DWORD dwBCastAddr; 
  DWORD dwReasmSize; 
  unsigned short unused1; 
  unsigned short unused2; 
} MIB_IPADDRROW, *PMIB_IPADDRROW;

Members

  • dwAddr
    The IP address.
  • dwIndex
    The index of the interface associated with this IP address.
  • dwMask
    The subnet mask for the IP address.
  • dwBCastAddr
    The broadcast address: typically the IP address that has the host portion set to either all zeros or all ones.
  • dwReasmSize
    The maximum reassembly size for received datagrams.
  • unused1
    This member is reserved.
  • unused2
    This member is reserved.
  • wType
    The address type or state, which can be a combination of the following values:

    Value

    Meaning

    MIB_IPADDR_PRIMARY

    0x0001

    Primary IP address.

    MIB_IPADDR_DYNAMIC

    0x0004

    Dynamic IP address.

    MIB_IPADDR_DISCONNECTED

    0x0008

    Address is located on disconnected interface.

    MIB_IPADDR_DELETED

    0x0040

    Address is being deleted.

    MIB_IPADDR_TRANSIENT

    0x0080

    Transient address.

Remarks

The GetIpAddrTable function retrieves the interface-to-IPv4 address mapping table on a local device and returns this information in a MIB_IPADDRTABLE structure. The table member in the MIB_IPADDRTABLE structure contains an array of MIB_IPADDRROW entries.

The header files organization has changed and the MIB_IPADDRROW structure is defined in the Ipmib.h header file instead of in the Iprtrmib.h header file. Be aware that the Ipmib.h header file is automatically included in Iprtrmib.h, which is automatically included in the Iphlpapi.h header file. The Ipmib.h and Iprtrmib.h header files should never be used directly.

Example Code

To view an example that retrieves the MIB_IPADDRTABLE structure and then prints out the MIB_IPADDRROW structures in this table, see the GetIpAddrTable function.

Requirements

Header

iprtrmib.h,
ws2def.h,
ws2ipdef.h

See Also

Reference

MIB Structures
IP Helper Structures
MIB_IPADDRTABLE
GetIpAddrTable