WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_proxy_arp.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2014-2023. All rights reserved.
3 * 文 件 名 : hmac_proxy_arp.h
4 * 生成日期 : 2014年7月29日
5 * 功能描述 : hmac_proxy_arp.c的头文件
6 */
7
8#ifndef __HMAC_PROXY_ARP_H__
9#define __HMAC_PROXY_ARP_H__
10
11#ifdef _PRE_WLAN_FEATURE_PROXY_ARP
12
13/*****************************************************************************
14 1 其他头文件包含
15*****************************************************************************/
16#include "oal_ext_if.h"
17#include "mac_vap_ext.h"
18#include "hmac_vap.h"
19
20#ifdef __cplusplus
21#if __cplusplus
22extern "C" {
23#endif
24#endif
25
26/*****************************************************************************
27 2 宏定义
28*****************************************************************************/
29#define HMAC_PROXY_IPV4_HASHSIZE MAC_VAP_USER_HASH_MAX_VALUE
30#define HMAC_PROXY_IPV6_HASHSIZE MAC_VAP_USER_HASH_MAX_VALUE
31
32#define hmac_proxy_ipv4_hash(n) \
33 (((const osal_u8 *)(&n))[3] % HMAC_PROXY_IPV4_HASHSIZE)
34
35#define hmac_proxy_ipv6_hash(n) \
36 (((const osal_u8 *)(n))[15] % HMAC_PROXY_IPV6_HASHSIZE)
37
38/*****************************************************************************
39 3 枚举定义
40*****************************************************************************/
41
42
43/*****************************************************************************
44 4 全局变量声明
45*****************************************************************************/
46
47
48/*****************************************************************************
49 5 消息头定义
50*****************************************************************************/
51
52
53/*****************************************************************************
54 6 消息定义
55*****************************************************************************/
56
57
58/*****************************************************************************
59 7 STRUCT定义
60*****************************************************************************/
61typedef struct {
62 struct osal_list_head entry;
63 osal_u32 ipv4; /* 记录对应的ipv4地址 */
64 osal_u8 mac[WLAN_MAC_ADDR_LEN]; /* 记录对应的mac地址 */
65 osal_u8 rsv[2];
66} hmac_proxy_ipv4_hash_stru;
67
68typedef struct {
69 struct osal_list_head entry;
70 oal_in6_addr ipv6; /* 记录对应的ipv4地址 */
71 osal_u8 mac[WLAN_MAC_ADDR_LEN]; /* 记录对应的mac地址 */
72 osal_u8 rsv[2];
73} hmac_proxy_ipv6_hash_stru;
74
75/*****************************************************************************
76 8 UNION定义
77*****************************************************************************/
78
79
80/*****************************************************************************
81 9 OTHERS定义
82*****************************************************************************/
83
84/*****************************************************************************
85 10 函数声明
86*****************************************************************************/
87extern osal_u32 hmac_proxy_arp_init(hmac_vap_stru *hmac_vap);
88extern osal_void hmac_proxy_exit(hmac_vap_stru *hmac_vap);
89extern oal_bool_enum_uint8 hmac_proxy_arp_proc(hmac_vap_stru *hmac_vap, oal_netbuf_stru *buf);
90extern oal_err_code_enum_uint32 hmac_proxy_remove_mac(hmac_vap_stru *hmac_vap, osal_u8 *mac);
91extern osal_s32 hmac_proxyarp_on(hmac_vap_stru *hmac_vap, frw_msg *msg);
92extern osal_u32 hmac_proxy_display_info(hmac_vap_stru *hmac_vap);
93
94#ifdef __cplusplus
95#if __cplusplus
96}
97#endif
98#endif
99
100#endif /* #ifdef _PRE_WLAN_FEATURE_PROXY_ARP */
101#endif
102
#define WLAN_MAC_ADDR_LEN
Definition mac_addr.c:28
osal_u8 rsv[3]
Definition oal_net.h:2
osal_u32 oal_err_code_enum_uint32
Definition oal_types_device.h:37
osal_u8 oal_bool_enum_uint8
Definition oal_types_device_rom.h:45
int osal_s32
Definition osal_types.h:19
unsigned char osal_u8
Definition osal_types.h:11
void osal_void
Definition osal_types.h:29
unsigned int osal_u32
Definition osal_types.h:13
Definition frw_msg_rom.h:74
Definition mac_vap_ext.h:2019
Definition eth_ip_common_rom.h:116
Definition osal_list.h:39
Definition oal_skbuff.h:82