WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_traffic_classify.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2023. All rights reserved.
3 * Description: Header file for hmac_traffic_classify.c.
4 * Create: 2021-12-15
5 */
6
7#ifndef __HMAC_TRAFFIC_CLASSIFY_H__
8#define __HMAC_TRAFFIC_CLASSIFY_H__
9
10#ifdef _PRE_WLAN_FEATURE_TX_CLASSIFY_LAN_TO_WLAN
11
12/*****************************************************************************
13 1头文件包含
14*****************************************************************************/
15#include "oal_ext_if.h"
16#include "frw_ext_if.h"
17#include "hmac_tx_data.h"
18#include "hmac_tx_amsdu.h"
19#include "mac_frame.h"
20#include "mac_data.h"
21#include "hmac_frag.h"
22#include "hmac_11i.h"
23#include "hmac_user.h"
24
25#include "hmac_m2u.h"
26
27#ifdef _PRE_WLAN_FEATURE_PROXY_ARP
28#include "hmac_proxy_arp.h"
29#endif
30
31#include "hmac_device.h"
32#include "hmac_resource.h"
33
34#include "hmac_tcp_opt.h"
35
36#ifdef __cplusplus
37#if __cplusplus
38extern "C" {
39#endif
40#endif
41
42#undef THIS_FILE_ID
43#define THIS_FILE_ID OAM_FILE_ID_HMAC_TRAFFIC_CLASSIFY_H
44
45/*****************************************************************************
46 2宏定义
47*****************************************************************************/
48
49
50/*****************************************************************************
51 3结构体
52*****************************************************************************/
53
54/*****************************************************************************
55 用户结构体: 包含了已识别业务、待识别业务序列
56 这里借助hmac_user_stru,在hmac_user_stru结构体中添加宏定义字段:
57 _PRE_WLAN_FEATURE_TX_CLASSIFY_LAN_TO_WLAN
58*****************************************************************************/
59
60/*****************************************************************************
61 RTP头结构体:结构体中没有包含最后的CSRC标识符
62*****************************************************************************/
63typedef struct {
64 /*---------------------------------------------------------------------------
65 RTP头结构
66 -----------------------------------------------------------------------------
67 |version|P|X| CSRC数 |M| PT | 序号 |
68 | 2bit |1|1| 4bit |1| 7bit | 16bit |
69 -----------------------------------------------------------------------------
70 | 时间戳 32bit |
71 -----------------------------------------------------------------------------
72 | SSRC 32bit |
73 -----------------------------------------------------------------------------
74 | CSRC 每个CSRC标识符32bit 标识符个数由CSRC数决定 |
75 ---------------------------------------------------------------------------*/
76
77 osal_u8 version_and_csrc; /* 版本号2bit、填充位(P)1bit、扩展位(X)1bit、CSRC数目4bit */
78 osal_u8 payload_type; /* 标记1bit、有效载荷类型(PT)7bit */
79 osal_u16 rtp_idx; /* RTP发送序号 */
80 osal_u32 rtp_time_stamp; /* 时间戳 */
81 osal_u32 ssrc; /* SSRC */
82} hmac_tx_rtp_hdr;
83
84/*****************************************************************************
85 3 函数实现
86*****************************************************************************/
87extern osal_void hmac_tx_traffic_classify_etc(mac_tx_ctl_stru *tx_ctl,
88 mac_ip_header_stru *pst_ip,
89 osal_u8 *puc_tid);
90
91#ifdef __cplusplus
92#if __cplusplus
93}
94#endif
95#endif
96
97#endif /* endif _PRE_WLAN_FEATURE_TX_CLASSIFY_LAN_TO_WLAN */
98
99#endif /* end of __HMAC_TRAFFIC_CLASSIFY_H__ */
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
Definition mac_frame_common_rom.h:501
Definition dmac_ext_if_device_rom.h:98