blob: 7333c805d15cdbf55c6853ab68e8eabe572ee9bf [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#ifndef __INC_N3SAM_STRUCT_H
2#define __INC_N3SAM_STRUCT_H
3
4#include "network_dev_info_struct.h"
5
6#define N3SAM_WT_BEARER_LIST_SIZE 16
7
8// MSG_ID_N3SAM_WT_WIFI_FILTER_ADD_REQ & MSG_ID_N3SAM_WT_WIFI_FILTER_DELETE_REQ,
9typedef struct _n3sam_wt_wifi_filter_update_struct {
10 LOCAL_PARA_HDR
11
12 kal_uint8 path; // WTUNNEL_DATA_OVER_WIFI, WTUNNEL_DATA_OVER_CELLULER
13 kal_uint8 ip_type; // WTUNNEL_ADDR_FAMILY_IPV4, WTUNNEL_ADDR_FAMILY_IPV6
14 kal_uint8 padding[2];
15 kal_uint32 main_filter_id;
16 kal_uint32 ip_addr[4];
17} n3sam_wt_wifi_filter_update_struct;
18
19// MSG_ID_N3SAM_WT_SA_ADD_REQ & MSG_ID_N3SAM_WT_SA_MODIFY_REQ
20typedef struct _n3sam_wt_wifi_sa_add_struct {
21 LOCAL_PARA_HDR
22
23 kal_bool dir_ul;
24 kal_uint32 sa_id;
25 nw_device_id_enum dev_id; // NW_DEV_WLAN , NW_DEV_DATA_1,2,3,4
26 kal_uint8 ps_id;
27 kal_uint8 bear_id_num;
28 kal_uint8 path; // WTUNNEL_DATA_OVER_WIFI, WTUNNEL_DATA_OVER_CELLULER
29 kal_uint8 ip_type; // WTUNNEL_ADDR_FAMILY_IPV4, WTUNNEL_ADDR_FAMILY_IPV6
30 kal_uint8 bearer_id[16];
31} n3sam_wt_wifi_sa_add_struct;
32
33// MSG_ID_N3SAM_WT_SA_DELETE_REQ
34typedef struct _n3sam_wt_wifi_sa_delete_struct {
35 LOCAL_PARA_HDR
36
37 kal_bool dir_ul;
38 kal_uint32 sa_id;
39 kal_uint8 path; // WTUNNEL_DATA_OVER_WIFI, WTUNNEL_DATA_OVER_CELLULER
40 kal_uint8 ip_type; // WTUNNEL_ADDR_FAMILY_IPV4, WTUNNEL_ADDR_FAMILY_IPV6
41 kal_uint8 padding[2];
42} n3sam_wt_wifi_sa_delete_struct;
43
44// MSG_ID_N3SAM_WT_SA_ADD_CNF, MSG_ID_N3SAM_WT_SA_MODIFY_CNF, & MSG_ID_N3SAM_WT_SA_DELETE_CNF
45typedef struct _n3sam_wt_wifi_sa_rsp_struct {
46 LOCAL_PARA_HDR
47
48 kal_uint32 sa_id;
49 kal_bool result;
50} n3sam_wt_wifi_sa_rsp_struct;
51
52/* For DHL logging struct */
53typedef n3sam_wt_wifi_filter_update_struct n3sam_wt_wifi_filter_add_req_struct;
54typedef n3sam_wt_wifi_filter_update_struct n3sam_wt_wifi_filter_delete_req_struct;
55typedef n3sam_wt_wifi_sa_add_struct n3sam_wt_sa_add_req_struct;
56typedef n3sam_wt_wifi_sa_add_struct n3sam_wt_sa_modify_req_struct;
57typedef n3sam_wt_wifi_sa_delete_struct n3asm_wt_sa_delete_req_struct;
58typedef n3sam_wt_wifi_sa_rsp_struct n3sam_wt_sa_add_cnf_struct;
59typedef n3sam_wt_wifi_sa_rsp_struct n3sam_wt_sa_modify_cnf_struct;
60typedef n3sam_wt_wifi_sa_rsp_struct n3sam_wt_sa_delete_cnf_struct;
61
62#endif // __INC_N3SAM_STRUCT_H