2.2.2.5 WITNESS_INTERFACE_INFO
The WITNESS_INTERFACE_INFO structure specifies the IP addresses of the interface.
-
typedef struct _WITNESS_INTERFACE_INFO { WCHAR InterfaceGroupName[260]; ULONG Version; USHORT State; ULONG IPV4; USHORT IPV6[8]; UINT Flags; } WITNESS_INTERFACE_INFO, *PWITNESS_INTERFACE_INFO;
InterfaceGroupName: The null-terminated string that specifies a name of the interface group.
Version: The current version of the Witness Service running on the server.
State: The current state of the interface. This field MUST contain one of the following values:
-
Value
Meaning
UNKNOWN
0x0000
The state of the interface is unknown.
AVAILABLE
0x0001
The interface is available.
UNAVAILABLE
0x00FF
The interface is unavailable.
IPV4: The IPv4 address of the interface, if the IPv4 flag is set in Flags field.
IPV6: The IPv6 address of the interface, if the IPv6 flag is set in Flags field.
Flags: The Flags field specifies information about the interface. This field MUST be set to combination of zero or more of the following values:
-
Value
Meaning
IPv4
0x00000001
If set, the IPV4 field contains a valid address.
IPv6
0x00000002
If set, the IPV6 field contains a valid address.
INTERFACE_WITNESS
0x00000004
If set, the interface is available for witness registration. If not set, the interface MUST NOT be used for witness registration.