NET_SDK_DEVICE_IP_INFO
Structure Definition
| typedef struct _net_sdk_device_ip_info_
{
char szMac[36];
char szIpAddr[64];
char szMark[36];
char szGateway[36];
char szPassword[64];
char szDdns1[36];
char szDdns2[36];
char ucIPMode;
} NET_SDK_DEVICE_IP_INFO;
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | [StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct NET_SDK_DEVICE_IP_INFO
{
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 36)]
public byte[] szMac;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
public byte[] szIpAddr;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 36)]
public byte[] szMark;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 36)]
public byte[] szGateway;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
public byte[] szPassword;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 36)]
public byte[] szDdns1;
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 36)]
public byte[] szDdns2;
public byte ucIPMode;
}
|
Function Description
The LAN front end modifies the device's structure information.
Member Description
| Member | Type | Remark |
| szMac | char[36] | The current MAC address of the device. |
| szIpAddr | char[64] | The ip to be modified. |
| szMark | char[36] | The subnet mask to be modified. |
| szGateway | char[36] | The gateway to be modified. |
| szPassword | char[64] | The password to be changed. |
| szDdns1 | char[36] | To be modified to dns1. |
| szDdns2 | char[36] | To be modified to dns2. |
| ucIPMode | char | 0 is static IP, 1 is DHCP. |