#ifndef __SYS_H__ #define __SYS_H__ #include #include "protocol.h" enum { IP_DHCP=0, IP_STATIC, }; enum { IP_ERR=0, IP_V4, IP_V6, }; int net_ip_check(char *ip); int netget_mac(char *mac, int maclen); int net_get_net(network_data_t *para, int ip_version); int net_set_net(network_data_t *para, int ip_version); #endif