2019-08-07 03:49:31 +00:00
|
|
|
#ifndef NETCONFIG_H_
|
|
|
|
#define NETCONFIG_H_
|
|
|
|
#include "ipconfig.h"
|
|
|
|
#include "brconfig.h"
|
|
|
|
|
2019-08-09 03:19:03 +00:00
|
|
|
#define PORT_MAX_VLAN (10)
|
|
|
|
|
|
|
|
/* 事件通知数据结构 */
|
|
|
|
struct _net_ifnum {
|
|
|
|
int wan_num;
|
|
|
|
int lan_num;
|
|
|
|
};
|
|
|
|
typedef struct _net_ifnum net_ifnum_t;
|
|
|
|
|
2019-08-07 06:36:23 +00:00
|
|
|
ret_code if_ioctl(unsigned long request, caddr_t ifreq, int *ret);
|
2019-08-07 03:49:31 +00:00
|
|
|
ret_code if_set_up(char *ifname, int *code);
|
|
|
|
ret_code if_set_down(char *ifname, int *code);
|
2019-08-09 03:19:03 +00:00
|
|
|
ret_code if_num_init();
|
|
|
|
int if_lan_num();
|
|
|
|
int if_wan_num();
|
2019-08-07 03:49:31 +00:00
|
|
|
|
2019-08-07 06:55:53 +00:00
|
|
|
ret_code net_main();
|
2019-08-07 03:49:31 +00:00
|
|
|
#endif
|
|
|
|
|