2.2.1.2.254 BGP_IP_ADDRESS

The BGP_IP_ADDRESS structure<183> is used to represent an IPv4 or IPv6 address in the BGP configuration.

 typedef struct _BGP_IP_ADDRESS {
   union {
     DWORD v4;
     BYTE v6[16];
   } address;
   USHORT uAddressFamily;
 } BGP_IP_ADDRESS,
  *PBGP_IP_ADDRESS;

v4: A 32-bit, unsigned integer in network byte order that represents an IPv4 address.

v6[16]: A 128-bit, unsigned integer in network byte order that represents an IPv6 address.

uAddressFamily: Specifies whether the IP address is an IPv4 or IPv6 address.

Value

Meaning

AF_INET

0x02

The IP address is an IPv4 address.

AF_INET6

0x17

The IP address is an IPv6 address.