SYSTEM_IPADDRESS
This structure defines network configuration parameters including IP, subnet mask, gateway, and DNS information.
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
0 |
|
|
IP usage (internal/external or enable/disable depending on compilation flag) |
|
1 |
|
|
IP type (0: dynamic, 1: static) |
|
2 |
|
|
Host IP address |
|
18 |
|
|
Subnet mask address |
|
34 |
|
|
Default gateway address |
|
50 |
|
|
Primary and secondary DNS addresses |
Total size: 82 bytes
Defined in: DRFS.h
typedef struct _SYSTEM_IPADDRESS
{
#ifndef USE_ONE_IP
/* internal use: 0, external link: 1 */
#else
/* Disable: 0, Enable: 1 */
#endif
unsigned char _iUsage;
/* dynamic ip: 0, static ip: 1 */
unsigned char _iIpType;
/* ip address */
char _szHotsIp[16];
/* subnet mask address */
char _szSubnet[16];
/* default gateway address */
char _szGateway[16];
/* primary/secondary dns address */
char _szDNS[2][16];
} SYSTEM_IPADDRESS, *LPSYSTEM_IPADDRESS;