d142d25cff13557114e2a2b2341cbdb3462df390
[openwrt/staging/chunkeey.git] /
1 /*
2 * Copyright (C) 2013 Realtek Semiconductor Corp.
3 * All Rights Reserved.
4 *
5 * Unless you and Realtek execute a separate written software license
6 * agreement governing use of this software, this software is licensed
7 * to you under the terms of the GNU General Public License version 2,
8 * available at https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
9 *
10 * $Revision: 76306 $
11 * $Date: 2017-03-08 15:13:58 +0800 (¶g¤T, 08 ¤T¤ë 2017) $
12 *
13 * Purpose : RTL8367C switch high-level API for RTL8367C
14 * Feature : Unkown multicast related functions
15 *
16 */
17
18 #ifndef _RTL8367C_ASICDRV_UNKNOWNMULTICAST_H_
19 #define _RTL8367C_ASICDRV_UNKNOWNMULTICAST_H_
20
21 #include <rtl8367c_asicdrv.h>
22
23 enum L2_UNKOWN_MULTICAST_BEHAVE
24 {
25 L2_UNKOWN_MULTICAST_FLOODING = 0,
26 L2_UNKOWN_MULTICAST_DROP,
27 L2_UNKOWN_MULTICAST_TRAP,
28 L2_UNKOWN_MULTICAST_DROP_EXCLUDE_RMA,
29 L2_UNKOWN_MULTICAST_END
30 };
31
32 enum L3_UNKOWN_MULTICAST_BEHAVE
33 {
34 L3_UNKOWN_MULTICAST_FLOODING = 0,
35 L3_UNKOWN_MULTICAST_DROP,
36 L3_UNKOWN_MULTICAST_TRAP,
37 L3_UNKOWN_MULTICAST_ROUTER,
38 L3_UNKOWN_MULTICAST_END
39 };
40
41 enum MULTICASTTYPE{
42 MULTICAST_TYPE_IPV4 = 0,
43 MULTICAST_TYPE_IPV6,
44 MULTICAST_TYPE_L2,
45 MULTICAST_TYPE_END
46 };
47
48 extern ret_t rtl8367c_setAsicUnknownL2MulticastBehavior(rtk_uint32 port, rtk_uint32 behave);
49 extern ret_t rtl8367c_getAsicUnknownL2MulticastBehavior(rtk_uint32 port, rtk_uint32 *pBehave);
50 extern ret_t rtl8367c_setAsicUnknownIPv4MulticastBehavior(rtk_uint32 port, rtk_uint32 behave);
51 extern ret_t rtl8367c_getAsicUnknownIPv4MulticastBehavior(rtk_uint32 port, rtk_uint32 *pBehave);
52 extern ret_t rtl8367c_setAsicUnknownIPv6MulticastBehavior(rtk_uint32 port, rtk_uint32 behave);
53 extern ret_t rtl8367c_getAsicUnknownIPv6MulticastBehavior(rtk_uint32 port, rtk_uint32 *pBehave);
54 extern ret_t rtl8367c_setAsicUnknownMulticastTrapPriority(rtk_uint32 priority);
55 extern ret_t rtl8367c_getAsicUnknownMulticastTrapPriority(rtk_uint32 *pPriority);
56
57 #endif /*_RTL8367C_ASICDRV_UNKNOWNMULTICAST_H_*/
58
59