]> Pileus Git - ~andy/linux/blob - drivers/staging/rtl8188eu/include/rtw_br_ext.h
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml
[~andy/linux] / drivers / staging / rtl8188eu / include / rtw_br_ext.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20 #ifndef _RTW_BR_EXT_H_
21 #define _RTW_BR_EXT_H_
22
23 #define MACADDRLEN              6
24 #define _DEBUG_ERR              DBG_88E
25 #define _DEBUG_INFO             DBG_88E
26 #define DEBUG_WARN              DBG_88E
27 #define DEBUG_INFO              DBG_88E
28 #define DEBUG_ERR               DBG_88E
29 #define GET_MY_HWADDR(padapter)         ((padapter)->eeprompriv.mac_addr)
30
31 #define NAT25_HASH_BITS         4
32 #define NAT25_HASH_SIZE         (1 << NAT25_HASH_BITS)
33 #define NAT25_AGEING_TIME       300
34
35 #define MAX_NETWORK_ADDR_LEN    17
36
37 struct nat25_network_db_entry {
38         struct nat25_network_db_entry   *next_hash;
39         struct nat25_network_db_entry   **pprev_hash;
40         atomic_t        use_count;
41         unsigned char   macAddr[6];
42         unsigned long   ageing_timer;
43         unsigned char   networkAddr[MAX_NETWORK_ADDR_LEN];
44 };
45
46 enum NAT25_METHOD {
47         NAT25_MIN,
48         NAT25_CHECK,
49         NAT25_INSERT,
50         NAT25_LOOKUP,
51         NAT25_PARSE,
52         NAT25_MAX
53 };
54
55 struct br_ext_info {
56         unsigned int    nat25_disable;
57         unsigned int    macclone_enable;
58         unsigned int    dhcp_bcst_disable;
59         int     addPPPoETag;            /* 1: Add PPPoE relay-SID, 0: disable */
60         unsigned char   nat25_dmzMac[MACADDRLEN];
61         unsigned int    nat25sc_disable;
62 };
63
64 void nat25_db_cleanup(struct adapter *priv);
65
66 #endif /*  _RTW_BR_EXT_H_ */