Skip to content

DD_NETWORK_IP_CONFIG

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
typedef struct _dd_network_ip_config_
{
    unsigned int iSize;                         
    unsigned int useDHCP;                       
    unsigned int IP;                            
    unsigned int subnetMask;                    
    unsigned int gateway;                       
    unsigned int preferredDNS;                  
    unsigned int alternateDNS;                  
    unsigned int usePPPoE;                      
    char account[DD_MAX_PPPOE_ACCOUNT_BUF_LEN]; 
    char password[DD_MAX_PASSWORD_BUF_LEN];     
} DD_NETWORK_IP_CONFIG;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct DD_NETWORK_IP_CONFIG
{
    public UInt32 iSize;
    public UInt32 useDHCP;
    public UInt32 IP;
    public UInt32 subnetMask;
    public UInt32 gateway;
    public UInt32 preferredDNS;
    public UInt32 alternateDNS;
    public UInt32 usePPPoE;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 132)]
    public byte[] account;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 132)]
    public byte[] password;
}

Function Description

Network IP configuration structure.

Member Description

Member Type Remark
iSize unsigned int The length of this structure.
useDHCP unsigned int Whether to use dynamic network addresses.
IP unsigned int Network address.
subnetMask unsigned int Subnet mask.
gateway unsigned int Gateway.
preferredDNS unsigned int The primary network domain name server address.
alternateDNS unsigned int From the network domain name server address.
usePPPoE unsigned int Whether to use PPPoE.
account char[DD_MAX_PPPOE_ACCOUNT_BUF_LEN] PPPoE account.
password char[DD_MAX_PASSWORD_BUF_LEN] The PPPoE password.
Error Code