1
2#ifndef _MULTISSIDCONTROL_H_
3#define _MULTISSIDCONTROL_H_
4
5#ifndef uint16
6#define uint16 unsigned short
7#endif
8#ifndef uint8
9#define uint8 unsigned char
10#endif
11#ifndef uint32
12#define uint32 unsigned int
13#endif
14#ifndef int32
15#define int32 int
16#endif
17#ifndef int8
18#define int8 char
19#endif
20
21#ifndef int16
22#define int16 short
23#endif
24
25#define MS_ACCEPT       0
26#define MS_DROP         1
27
28#define DNS_PORT          53 /* Foxconn added pling 03/24/2015 */
29#define DHCP_SERVER_PORT  67
30#define DHCP_CLIENT_PORT  68
31#define HTTP_PORT         80 /* foxconn added, zacker, 08/11/2009, @mbssid_filter */
32
33/* Foxconn add start, Tony W.Y. Wang, 12/22/2009 @block FTP and Samba access */
34#define FTP_PORT1        20
35#define FTP_PORT2        21
36#define SAMBA_PORT1      137
37#define SAMBA_PORT2      138
38#define SAMBA_PORT3      139
39#define SAMBA_PORT4      445    /*stanley add 01/13/2010 add samba port*/
40#define SOAP_API_PORT    5000   /* pling added 10/22/2013, SOAP API port */
41#define TELNET_PORT      23     /* Bob added 02/27/2014, telnet port */
42#define FBWIFI_PORT      5001   /* pling added 04/15/2015, for Facebook WiFi */
43
44/* Foxconn added start, Wins, 03/18/2011, @AP_MODE */
45#if defined(AP_MODE)
46#if defined(WNDR3400v3) || (defined R7000)  /* pling modified 06/30/2014, R7000 WAN is "vlan2" when in AP mode */
47#define WAN_IFNAME          "vlan2"
48#else
49#define WAN_IFNAME          "eth0"
50#endif
51#define WL0_GUEST1_IFNAME   "wl0.1"
52#define WL0_GUEST2_IFNAME   "wl0.2"
53#define WL0_GUEST3_IFNAME   "wl0.3"
54#if (defined INCLUDE_DUAL_BAND)
55#define WL1_GUEST1_IFNAME   "wl1.1"
56#define WL1_GUEST2_IFNAME   "wl1.2"
57#define WL1_GUEST3_IFNAME   "wl1.3"
58#endif
59#endif /* AP_MODE */
60/* Foxconn added end, Wins, 03/18/2011, @AP_MODE */
61
62/* Foxconn add end, Tony W.Y. Wang, 12/22/2009 */
63typedef struct MulitSsidControlProfile {
64       char IfName[8];
65       int enable;
66       unsigned int FilterIP; /* foxconn added, zacker, 08/11/2009, @mbssid_filter */
67       /* Foxconn added start, Wins, 03/18/2011, @AP_MODE */
68#if defined(AP_MODE)
69       int apMode;
70#endif /* AP_MODE */
71#if defined(VLAN_SUPPORT)
72       int vlanIptvMode;
73       int bridgeIntf[8];
74       int wanIntf[8];
75#endif
76       /* Foxconn added end, Wins, 03/18/2011, @AP_MODE */
77}T_MSsidCtlProfile;
78
79/* Foxconn added start, James Hsu, 04/08/2015 */
80typedef struct ArloClientProfile {
81        unsigned char mac[32];
82}T_ClientProfile;
83/* Foxconn added end, James Hsu, 04/08/2015 */
84
85#if 0
86#define MultiSsidControlDEBUG(fmt, args...)      printk("<0>MultiSsidControlDEBUG: " fmt, ##args)
87#define MultiSsidControlERROR       printk("<0>MultiSsidControlERROR: " fmt, ##args)
88#else
89#define MultiSsidControlDEBUG(fmt, args...)
90#define MultiSsidControlERROR
91#endif
92
93
94
95#endif
96