|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "hmac_vap.h"

结构体 | |
| struct | hmac_bridge_ipv4_hash_stru |
| struct | hmac_bridge_unknow_hash_stru |
| struct | hmac_vap_bridge_stru |
| struct | hmac_single_proxysta_stru |
| struct | hmac_bridge_cmd_stru |
| struct | hmac_brctl_stru |
| struct | mac_cfg_brctl_stru |
类型定义 | |
| typedef osal_void(* | hmac_bridge_cmd_func) (const osal_char *param) |
| typedef osal_u32(* | hmac_bridge_tx_process_cb) (const oal_netbuf_stru *netbuf, hmac_vap_stru *hmac_vap) |
| typedef osal_u32(* | hmac_bridge_rx_process_cb) (const oal_netbuf_stru *netbuf, const hmac_vap_stru *hmac_vap) |
| typedef osal_u32(* | sle_tx_wifi_pbuf_t) (oal_lwip_buf *pbuf) |
| typedef osal_u32(* | wifi_tx_sle_pbuf_t) (struct pbuf *lwip_buf) |
变量 | |
| static osal_u32 | used |
| #define BRIDGE_CMD_MAX_NUM 5 |
| #define BRIDGE_CMD_NAME_MAX_LEN 8 |
| #define BRIDGE_PORT_MAX_NUM 2 |
| #define DHCP_FLAG_BCAST 0x8000 /* 请求DHCP服务器以广播形式回复DHCP response */ |
| #define DHCP_PORT_BOOTPC 0x0044 /* DHCP 客户端接收报文端口,即服务器发送报文的目的端口 */ |
| #define DHCP_PORT_BOOTPS 0x0043 /* DHCP 服务端接收报文端口,即客户端发送报文的目的端口 */ |
| #define hmac_bridge_cal_ipv4_hash | ( | _puc_ip_addr | ) | ((_puc_ip_addr)[ETH_TARGET_IP_ADDR_LEN - 1] & (HMAC_BRIDGE_MAP_IPV4_HASHSIZE - 1)) |
| #define hmac_bridge_cal_unknow_hash | ( | _us_protocol | ) | ((_us_protocol) & (HMAC_BRIDGE_MAP_UNKNOW_HASHSIZE - 1)) |
| #define HMAC_BRIDGE_MAP_AGING_TIME 120000 /* BRIDGE MAP表格老化时间 120s */ |
| #define HMAC_BRIDGE_MAP_AGING_TRIGGER_TIME 60000 /* MAP老化计时器触发时间 60s */ |
| #define HMAC_BRIDGE_MAP_IPV4_HASHSIZE MAC_VAP_BRIDGE_MAP_MAX_VALUE |
| #define HMAC_BRIDGE_MAP_MAX_NUM 16 /* MAP表格大小,当前限制为16 */ |
| #define HMAC_BRIDGE_MAP_UNKNOW_HASHSIZE MAC_VAP_BRIDGE_MAP_UNKNOW_VALUE |
| #define MAC_VAP_BRIDGE_MAP_MAX_VALUE 4 /* BRIDGE HASH表的桶值 目前设置4个桶 */ |
| #define MAC_VAP_BRIDGE_MAP_UNKNOW_VALUE 4 /* BRIDGE HASH表的未知协议报文桶值 目前4个桶 */ |
| #define THIS_FILE_ID OAM_FILE_ID_HMAC_SINGLE_PROXYSTA_H |
| typedef osal_u32(* hmac_bridge_rx_process_cb) (const oal_netbuf_stru *netbuf, const hmac_vap_stru *hmac_vap) |
| typedef osal_u32(* hmac_bridge_tx_process_cb) (const oal_netbuf_stru *netbuf, hmac_vap_stru *hmac_vap) |
| typedef osal_u32(* sle_tx_wifi_pbuf_t) (oal_lwip_buf *pbuf) |
| typedef osal_u32(* wifi_tx_sle_pbuf_t) (struct pbuf *lwip_buf) |
| osal_void used |