SOCK_ADAPTER_INFORMATION2 (STRUCT)

TYPE SOCK_ADAPTER_INFORMATION2 : STRUCT

Structure to describe a network adapter on SysSocket level, including name server and DHCP server information

InOut:

Name

Type

Comment

udiStructSize

UDINT

Size of the structure SOCK_ADAPTER_INFORMATION returned from external implementation

udiVersion

UDINT

Version number of the structure

udiIndex

UDINT

Index number of this adapter. Value is constant until shutdown

udiReserved

UDINT

Reserved for internal use

wsName

WSTRING(ADAPTER_INFO_NAME_LEN)

Name of the network interface

wsDescription

WSTRING(ADAPTER_INFO_DESC_LEN)

Description text for the network interface; may be empty

abyMac

ARRAY [0..(ADAPTER_INFO_MAC_ADDR_LENGTH - 1)] OF BYTE

MAC ID (hardware address)

wType

WORD

Adapter type, see “Adapter types” contants SOCK_AIT_xxx in GVL

dwFlags

DWORD

Flags to characterize the adapter, see “Adapter information flags” constants SOCK_AIF_xxx in GVL

IpAddr

INADDR

IP address in network byte order

NetMask

INADDR

Subnet mask in network byte order

DefaultGateway

INADDR

IP address of default gateway in network byte order; only valid if SOCK_AIF_GATEWAY_INFO_VALID is set in dwFlags in GVL

PrimaryNameServer

INADDR

Primary Name Server. Value of 0.0.0.0 indicates no name server has been configured.

SecondaryNameServer

INADDR

Secondary Name Server. Value of 0.0.0.0 indicates no secondary name server has been configured.

wsDNSSuffix

WSTRING(ADAPTER_INFO_DNSSUFFIX_LEN)

Default domain name.

DHCPServer

INADDR

IP address of DHCP server; only valid if SOCK_AIF_DHCP_INFO_VALID is set in dwFlags in GVL