WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_sigma_traffic_stat.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
3 * 文 件 名 : hmac_sigma_traffic_stat.h
4 * 生成日期 : 2023年1月5日
5 * 功能描述 : hmac_sigma_traffic_stat.c 的头文件
6 */
7
8#ifndef HMAC_SIGMA_TRAFFIC_STAT_H
9#define HMAC_SIGMA_TRAFFIC_STAT_H
10
11#ifdef _PRE_WLAN_FEATURE_WFA_SUPPORT
12/*****************************************************************************
13 1 其他头文件包含
14*****************************************************************************/
15#include "oal_ext_if.h"
16#include "hmac_vap.h"
17
18#ifdef __cplusplus
19#if __cplusplus
20extern "C" {
21#endif
22#endif
23
24/*****************************************************************************
25 宏定义
26*****************************************************************************/
27#define MAX_SIGMA_STREAM_CNT 8 /* 支持最大的sigma流数 */
28#define MAX_SIGMA_RX_VALUE 32 /* 支持最大的统计位宽long long int类型 */
29
30/*****************************************************************************
31 全局变量声明
32*****************************************************************************/
33
34/*****************************************************************************
35 STRUCT定义
36*****************************************************************************/
37typedef struct {
38 osal_u8 flag; /* 流量统计开关 */
39 osal_u8 stream_cnt; /* 流数 */
40 osal_u16 resv;
41 osal_u16 port[MAX_SIGMA_STREAM_CNT]; /* UDP rx流目的端口号,报文关键识别信息 */
42 osal_u16 ip_id[MAX_SIGMA_STREAM_CNT]; /* IP报头的identification字段,同一分片报文识别 */
43 osal_u16 frag_offset[MAX_SIGMA_STREAM_CNT]; /* IP分片报文偏移字段,连续分片报文识别 */
44 osal_u16 udp_tot_len[MAX_SIGMA_STREAM_CNT]; /* UDP报文总长度,真实流量,不含IP和UDP头 */
45 osal_u32 rx_frames[MAX_SIGMA_STREAM_CNT]; /* 接收报文数量 */
46 osal_u64 rx_bytes[MAX_SIGMA_STREAM_CNT]; /* 接收bytes数量 */
47} hmac_udp_stat_stru;
48
49/*****************************************************************************
50 函数声明
51*****************************************************************************/
52osal_void hmac_rx_sigma_traffic_stat(const mac_ether_header_stru *ether_hdr);
53osal_s32 hmac_config_set_traffic_stat(hmac_vap_stru *hmac_vap, frw_msg *msg);
54osal_s32 hmac_config_add_traffic_port(hmac_vap_stru *hmac_vap, frw_msg *msg);
55#ifdef __cplusplus
56#if __cplusplus
57}
58#endif
59#endif
60#endif /* end of _PRE_WLAN_FEATURE_WFA_SUPPORT */
61
62#endif /* end of hmac_sigma_traffic_stat.h */
int osal_s32
Definition osal_types.h:19
unsigned char osal_u8
Definition osal_types.h:11
unsigned long long osal_u64
Definition osal_types.h:14
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 frw_msg_rom.h:74
Definition mac_vap_ext.h:2019
Definition mac_frame_common_rom.h:456