#ifndef __SYS_H__ #define __SYS_H__ #include #include "datadef.h" //#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); int net_init(void); void net_get_ip(network_data_t *data); int net_ipaddr_set(network_data_t *data); #endif