Netgetconfig() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

TCP/IP E
THERNET

netGetConfig()

netGetConfig()
208
M
X
800 S
P
ERIES
ROGRAMMERS
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
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;
Return Values
0
Succes, interface is up.
< 0
Error, probably network interface is down.
G
UIDE
Pointer to the network configuration structure to be filled:
net_conf_t members
short dhcp
char MAC[18]
char ipaddr[16]
char netmask[16]
char gateway[16]
char dns1[16]
char dns2[16]
Description
1=DHCP, 0=Static
format "xx:xx:xx:xx:xx:xx"
format "xxx.xxx.xxx.xxx"
format "xxx.xxx.xxx.xxx"
format "xxx.xxx.xxx.xxx"
format "xxx.xxx.xxx.xxx"
format "xxx.xxx.xxx.xxx"

Advertisement

Table of Contents
loading

Table of Contents