1
2#ifndef _ACCESSCONTROL_H_
3#define _ACCESSCONTROL_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 DHCP_SERVER_PORT  67
29#define DHCP_CLIENT_PORT  68
30#define HTTP_PORT         80 /* foxconn added, zacker, 08/11/2009, @mbssid_filter */
31
32/* Foxconn add start, Tony W.Y. Wang, 12/22/2009 @block FTP and Samba access */
33#define FTP_PORT1        20
34#define FTP_PORT2        21
35#define SAMBA_PORT1      137
36#define SAMBA_PORT2      138
37#define SAMBA_PORT3      139
38#define SAMBA_PORT4      445    /*stanley add 01/13/2010 add samba port*/
39#define MAX_DEVICE_NAME   32
40
41
42
43
44/*Fxcn added start, dennis,02/16/2012 @access control*/
45/*
46typedef struct AccessControlTable{
47       unsigned char AttachMac[6];
48       int enable;
49}T_AccessControlTable;
50*/
51
52typedef struct access_control_mac_list
53{
54    unsigned char mac[6];
55    int status;
56    char dev_name[MAX_DEVICE_NAME];
57    int conn_type;
58}T_AccessControlTable;
59
60/*Fxcn added end, dennis,02/16/2012 @access control*/
61
62
63
64#if 0
65#define AccessControlDEBUG(fmt, args...)      printk("<0>MultiSsidControlDEBUG: " fmt, ##args)
66#define AccessControlERROR       printk("<0>MultiSsidControlERROR: " fmt, ##args)
67#else
68#define AccessControlDEBUG(fmt, args...)
69#define AccessControlERROR
70#endif
71
72
73
74#endif
75