Share via


MIB_UDP6ROW (Compact 2013)

3/26/2014

This structure contains an entry from the User Datagram Protocol (UDP) listener table for IPv6 on the local device.

Syntax

typedef struct _MIB_UDP6ROW {
  IN6_ADDR dwLocalAddr;
  DWORD dwLocalScopeId;
  DWORD dwLocalPort;
} MIB_UDP6ROW,
  *PMIB_UDP6ROW;

Members

  • dwLocalAddr
    The IPv6 address of the UDP endpoint on the local device. This member is stored in a character array in network byte order.

    A value of zero indicates a UDP listener willing to accept datagrams for any IP interface associated with the local device.

  • dwLocalScopeId
    The scope ID for the IPv6 address of the UDP endpoint on the local device. This member is stored in network byte order.
  • dwLocalPort
    The port number of the UDP endpoint on the local device. This member is stored in network byte order.

Remarks

The GetUdp6Table function retrieves the UDP listener table for IPv6 on the local computer and returns this information in a MIB_UDP6TABLE structure. An array of MIB_UDP6ROW structures are contained in the MIB_UDP6TABLE structure.

The dwLocalAddr member is stored in an in6_addr structure.

The dwLocalScopeId and dwLocalPort members are in network byte order. In order to use the dwLocalScopeId and dwLocalPort members, the ntohs or inet_ntoa functions in Windows Sockets or similar functions may be needed.

The MIB_UDP6TABLE structure contains the UDP listener table for IPv6 on the local device. The name is based on the definition of this table in RFC 2454 published by the IETF. This table contains UDP endpoints for IPv6 that have been bound to an address. It should be noted that an application can create a UDP socket and bind it to an address for the sole purpose of sending a UDP datagram, without an intention of receiving packets by using this socket (functioning as a listener).

Requirements

Header

ws2def.h,
ws2ipdef.h

See Also

Reference

MIB Structures
GetUdp6Table
GetUdpTable
in6_addr
inet_ntoa
MIB_UDP6TABLE
MIB_UDPROW
MIB_UDPTABLE
ntohl
ntohs