sNET_INFO

The sNET_INFO structure contains information about the onboard network parameters.

 

typedef struct _NET_INFO

{

        BYTE    dhcp;

        BYTE    local_ip[4];

        BYTE    gateway_ip[4];

        BYTE    subnet_mask[4];

        WORD  http_port;

        WORD  telnet_port;

        WORD  smtp_port;

        BYTE    current_ip[4];

        BYTE    mac_addr[6];

        BYTE    reserved[3];

}sNET_INFO, *pNET_INFO;

Members:

dhcp

Value

Meaning

0

DHCP disabled

1

DHCP enabled

 

local_ip

        The user specified static IP used when DHCP disabled

gateway_ip

        The user specified gateway IP used when DHCP disabled

subnet_mask

        The user specified subnet mask used when DHCP disabled

http_port

        The current HTTP port ( default 80 ), port# 7168~8191 are reserved.

telnet_port

        The current Telnet port ( default 23 ), port# 7168~8191 are reserved

smtp_port

        The current SMTP port ( default 25 ), port# 7168~8191 are reserved

current_ip

        The current IP address

mac_addr

        The MAC address

 

Requirements

       

Header

arclib.h

Include

arclib.h

 

See Also

        ArcGetOnBoardNetInfo