WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_tcp_opt.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2023. All rights reserved.
3 * Description: Header file for hmac_tcp_opt.c.
4 * Create: 2021-12-15
5 */
6
7#ifndef __HMAC_TCP_OPT_H__
8#define __HMAC_TCP_OPT_H__
9
10#ifdef _PRE_WLAN_TCP_OPT
11#include "hcc_host_if.h"
12#include "hmac_vap.h"
13
14#ifdef __cplusplus
15#if __cplusplus
16extern "C" {
17#endif
18#endif
19
20#undef THIS_FILE_ID
21#define THIS_FILE_ID OAM_FILE_ID_HMAC_TCP_OPT_H
22
23/*****************************************************************************
24 1 其他头文件包含
25*****************************************************************************/
26
27
28/*****************************************************************************
29 2 宏定义
30*****************************************************************************/
31#define FIN_FLAG_BIT (1 << 0)
32#define SYN_FLAG_BIT (1 << 1)
33#define RESET_FLAG_BIT (1 << 2)
34#define URGENT_FLAG_BIT (1 << 5)
35#define FILTER_FLAG_MASK (FIN_FLAG_BIT | SYN_FLAG_BIT | RESET_FLAG_BIT | URGENT_FLAG_BIT)
36#define MAX_TIME_BY_TWO (1 << 16)
37#define HCC_ASSEMBLE_INFO_SIZE 16
38
39
40/*****************************************************************************
41 3 枚举定义
42*****************************************************************************/
43
44/*****************************************************************************
45 4 全局变量声明
46*****************************************************************************/
47
48
49/*****************************************************************************
50 5 消息头定义
51*****************************************************************************/
52
53
54/*****************************************************************************
55 6 消息定义
56*****************************************************************************/
57
58
59/*****************************************************************************
60 7 STRUCT定义
61*****************************************************************************/
62/*****************************************************************************
63 8 UNION定义
64*****************************************************************************/
65
66
67/*****************************************************************************
68 9 OTHERS定义
69*****************************************************************************/
70
71
72/*****************************************************************************
73 10 函数声明
74*****************************************************************************/
75void hmac_tcp_opt_ack_count_reset_etc(hmac_vap_stru *hmac_vap, hcc_chan_type dir, osal_u16 stream);
76struct tcp_list_node *hmac_tcp_opt_find_oldest_node_etc(hmac_vap_stru *hmac_vap, hcc_chan_type dir);
77struct tcp_list_node *hmac_tcp_opt_get_buf_etc(hmac_vap_stru *hmac_vap, hcc_chan_type dir);
78
79osal_u32 hmac_tcp_opt_add_node_etc(hmac_vap_stru *hmac_vap, struct wlan_tcp_flow *tcp_info, hcc_chan_type dir);
80osal_u32 hmac_tcp_opt_init_filter_tcp_ack_pool_etc(hmac_vap_stru *hmac_vap);
81void hmac_tcp_opt_deinit_list_etc(hmac_vap_stru *hmac_vap);
82osal_u32 hmac_tcp_opt_get_flow_index_etc(hmac_vap_stru *hmac_vap,
83 oal_ip_header_stru *ip_hdr,
84 oal_tcp_header_stru *tcp_hdr,
85 hcc_chan_type dir);
86
87oal_tcp_ack_type_enum_uint8 hmac_tcp_opt_get_tcp_ack_type_etc(hmac_vap_stru *hmac_vap,
88 oal_ip_header_stru *ip_hdr,
89 hcc_chan_type dir,
90 osal_u16 us_index);
91oal_bool_enum_uint8 hmac_judge_rx_netbuf_classify_etc(oal_netbuf_stru *netbuff);
92oal_bool_enum_uint8 hmac_judge_rx_netbuf_is_tcp_ack_etc(mac_llc_snap_stru *snap);
93oal_bool_enum_uint8 hmac_judge_tx_netbuf_is_tcp_ack_etc(oal_ether_header_stru *ps_ethmac_hdr);
94oal_tcp_ack_type_enum_uint8 hmac_tcp_opt_rx_get_tcp_ack_etc(oal_netbuf_stru *skb, hmac_vap_stru *hmac_vap,
95 osal_u16 *p_us_index, osal_u8 dir);
96oal_tcp_ack_type_enum_uint8 hmac_tcp_opt_tx_get_tcp_ack_etc(oal_netbuf_stru *skb, hmac_vap_stru *hmac_vap,
97 osal_u16 *p_us_index, osal_u8 dir);
98osal_u16 hmac_tcp_opt_tcp_ack_list_filter_etc(hmac_vap_stru *hmac_vap, hmac_tcp_opt_queue type,
100osal_u16 hmac_tcp_opt_rx_tcp_ack_filter_etc(void *hmac_device, hmac_tcp_opt_queue type, hcc_chan_type dir,
101 void *data);
102osal_u16 hmac_tcp_opt_tx_tcp_ack_filter_etc(void *hmac_vap, hmac_tcp_opt_queue type, hcc_chan_type dir,
103 void *data);
104osal_u32 hmac_tcp_opt_tcp_ack_filter_etc(oal_netbuf_stru *skb, hmac_vap_stru *hmac_vap, hcc_chan_type dir);
105
106void hmac_trans_queue_filter_etc(hmac_vap_stru *hmac_vap, oal_netbuf_head_stru *head_t,
107 hmac_tcp_opt_queue type, hcc_chan_type dir);
108void hmac_tcp_ack_process_hcc_queue_etc(hmac_vap_stru *hmac_vap,
109 hcc_chan_type dir, hmac_tcp_opt_queue type);
110osal_s32 hmac_tcp_ack_process_etc(void);
111oal_bool_enum_uint8 hmac_tcp_ack_need_schedule_etc(void);
112osal_void hmac_sched_transfer_etc(void);
113
114/*****************************************************************************
115 11 内联函数定义
116*****************************************************************************/
117#ifdef __cplusplus
118#if __cplusplus
119}
120#endif
121#endif
122
123#endif /* end of _PRE_WLAN_TCP_OPT */
124
125static osal_u32 hmac_tcp_opt_init_weakref(osal_void) __attribute__ ((weakref("hmac_tcp_opt_init"), used));
126static osal_void hmac_tcp_opt_deinit_weakref(osal_void) __attribute__ ((weakref("hmac_tcp_opt_deinit"), used));
127
128#endif /* end of hmac_tcp_opt.h */
enum _hcc_chan_type_ hcc_chan_type
static osal_u32 used
Definition hmac_tcp_opt.h:125
osal_u8 type
Definition oal_net.h:0
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
unsigned short osal_u16
Definition osal_types.h:12
Log message information header.
Definition log_oam_logger.h:564
Definition mac_vap_ext.h:2019
Definition mac_frame_common_rom.h:463
Definition eth_ip_common_rom.h:26
Definition eth_ip_common_rom.h:36
Definition eth_ip_common_rom.h:97
Definition oal_skbuff.h:73
Definition oal_skbuff.h:82
Definition hal_uart_v151_regs_def.h:38