WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_isolation.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2014-2023. All rights reserved.
3 * 文 件 名 : hmac_isolation.h
4 * 生成日期 : 2014年3月26日
5 * 功能描述 : hmac_isolation.c的头文件,从hmac_custom_security.h分离而来
6 */
7
8#ifndef __HMAC_ISOLATION_H__
9#define __HMAC_ISOLATION_H__
10
11#ifdef _PRE_WLAN_FEATURE_ISOLATION
12
13/*****************************************************************************
14 1 其他头文件包含
15*****************************************************************************/
16#include "oal_ext_if.h"
17#include "mac_vap_ext.h"
18
19#ifdef __cplusplus
20#if __cplusplus
21extern "C" {
22#endif
23#endif
24
25/*****************************************************************************
26 2 宏定义
27*****************************************************************************/
28
29/*****************************************************************************
30 3 枚举定义
31*****************************************************************************/
32
33/* 隔离模式 mode */
34typedef enum {
35 CS_ISOLATION_MODE_BROADCAST = 0x01, /* 广播 */
36 CS_ISOLATION_MODE_MULTICAST = 0x02, /* 组播 */
37 CS_ISOLATION_MODE_UNICAST = 0x04 /* 单播 */
38} cs_isolation_mode_enum;
39
40/* 隔离类型 */
41typedef enum {
42 CS_ISOLATION_TYPE_NONE, /* 关闭隔离 */
43 CS_ISOLATION_TYPE_MULTI_BSS, /* 多BSS隔离 */
44 CS_ISOLATION_TYPE_SINGLE_BSS, /* 单BSS隔离 */
45
46 CS_ISOLATION_TYPE_BUTT
47} cs_isolation_type_enum;
48typedef osal_u8 cs_isolation_type_enum_uint8;
49
50/* 隔离forwording方式 */
51typedef enum {
52 CS_ISOLATION_FORWORD_NONE, /* 隔离forword为不丢弃 */
53 CS_ISOLATION_FORWORD_TOLAN, /* 隔离forword为发送到lan */
54 CS_ISOLATION_FORWORD_DROP, /* 隔离forword为丢弃 */
55
56 CS_ISOLATION_FORWORD_BUTT
57} cs_isolation_forward_enum;
58typedef osal_u8 cs_isolation_forward_enum_uint8;
59
60/*****************************************************************************
61 4 全局变量声明
62*****************************************************************************/
63
64
65/*****************************************************************************
66 5 消息头定义
67*****************************************************************************/
68
69
70/*****************************************************************************
71 6 消息定义
72*****************************************************************************/
73
74
75/*****************************************************************************
76 7 STRUCT定义
77*****************************************************************************/
78/*****************************************************************************
79 8 UNION定义
80*****************************************************************************/
81
82
83/*****************************************************************************
84 9 OTHERS定义
85*****************************************************************************/
86
87
88/*****************************************************************************
89 10 函数声明
90*****************************************************************************/
91extern osal_u32 hmac_isolation_set_mode(hmac_vap_stru *hmac_vap, osal_u8 mode);
92extern osal_u32 hmac_isolation_set_type(hmac_vap_stru *hmac_vap, osal_u8 bss_type,
93 osal_u8 isolation_type);
94extern osal_u32 hmac_isolation_set_forward(hmac_vap_stru *hmac_vap, osal_u8 forward);
95extern cs_isolation_forward_enum hmac_isolation_filter(hmac_vap_stru *hmac_vap, osal_u8 *mac_addr);
96osal_bool hmac_isolation_filter_drop(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf);
97extern osal_u32 hmac_isolation_clear_counter(hmac_vap_stru *hmac_vap);
98extern osal_void hmac_show_isolation_info(hmac_vap_stru *hmac_vap);
99
100#ifdef __cplusplus
101#if __cplusplus
102}
103#endif
104#endif
105
106#endif /* #ifdef _PRE_WLAN_FEATURE_ISOLATION */
107
108#endif /* end of hmac_isolation.h */
109
unsigned char osal_u8
Definition osal_types.h:11
osal_u8 osal_bool
Definition osal_types.h:27
void osal_void
Definition osal_types.h:29
unsigned int osal_u32
Definition osal_types.h:13
Definition mac_vap_ext.h:2019
Definition oal_skbuff.h:82