TCP/IP ETHERNET
netGetConfig()
208 M
X
800 SERIES PROGRAMMERS GUIDE
netGetConfig()
Returns the network configuration parameters of the eth0 network interface. The
network interface must be up.
Prototype
int result = netGetConfig(net_conf_t *net)
Parameters
Return Values
net
typedef struct {
int dhcp;
char MAC[18];
char ipaddr[16];
char netmask[16];
char gateway[16];
char dns1[16];
char dns2[16];
} net_conf_t;
Pointer to the network configuration structure to be filled:
0 Succes, interface is up.
< 0 Error, probably network interface is down.
net_conf_t members Description
short dhcp 1=DHCP, 0=Static
char MAC[18] format “xx:xx:xx:xx:xx:xx”
char ipaddr[16] format “xxx.xxx.xxx.xxx”
char netmask[16] format “xxx.xxx.xxx.xxx”
char gateway[16] format “xxx.xxx.xxx.xxx”
char dns1[16] format “xxx.xxx.xxx.xxx”
char dns2[16] format “xxx.xxx.xxx.xxx”