blob: 7333c805d15cdbf55c6853ab68e8eabe572ee9bf [file] [log] [blame]
#ifndef __INC_N3SAM_STRUCT_H
#define __INC_N3SAM_STRUCT_H
#include "network_dev_info_struct.h"
#define N3SAM_WT_BEARER_LIST_SIZE 16
// MSG_ID_N3SAM_WT_WIFI_FILTER_ADD_REQ & MSG_ID_N3SAM_WT_WIFI_FILTER_DELETE_REQ,
typedef struct _n3sam_wt_wifi_filter_update_struct {
LOCAL_PARA_HDR
kal_uint8 path; // WTUNNEL_DATA_OVER_WIFI, WTUNNEL_DATA_OVER_CELLULER
kal_uint8 ip_type; // WTUNNEL_ADDR_FAMILY_IPV4, WTUNNEL_ADDR_FAMILY_IPV6
kal_uint8 padding[2];
kal_uint32 main_filter_id;
kal_uint32 ip_addr[4];
} n3sam_wt_wifi_filter_update_struct;
// MSG_ID_N3SAM_WT_SA_ADD_REQ & MSG_ID_N3SAM_WT_SA_MODIFY_REQ
typedef struct _n3sam_wt_wifi_sa_add_struct {
LOCAL_PARA_HDR
kal_bool dir_ul;
kal_uint32 sa_id;
nw_device_id_enum dev_id; // NW_DEV_WLAN , NW_DEV_DATA_1,2,3,4
kal_uint8 ps_id;
kal_uint8 bear_id_num;
kal_uint8 path; // WTUNNEL_DATA_OVER_WIFI, WTUNNEL_DATA_OVER_CELLULER
kal_uint8 ip_type; // WTUNNEL_ADDR_FAMILY_IPV4, WTUNNEL_ADDR_FAMILY_IPV6
kal_uint8 bearer_id[16];
} n3sam_wt_wifi_sa_add_struct;
// MSG_ID_N3SAM_WT_SA_DELETE_REQ
typedef struct _n3sam_wt_wifi_sa_delete_struct {
LOCAL_PARA_HDR
kal_bool dir_ul;
kal_uint32 sa_id;
kal_uint8 path; // WTUNNEL_DATA_OVER_WIFI, WTUNNEL_DATA_OVER_CELLULER
kal_uint8 ip_type; // WTUNNEL_ADDR_FAMILY_IPV4, WTUNNEL_ADDR_FAMILY_IPV6
kal_uint8 padding[2];
} n3sam_wt_wifi_sa_delete_struct;
// MSG_ID_N3SAM_WT_SA_ADD_CNF, MSG_ID_N3SAM_WT_SA_MODIFY_CNF, & MSG_ID_N3SAM_WT_SA_DELETE_CNF
typedef struct _n3sam_wt_wifi_sa_rsp_struct {
LOCAL_PARA_HDR
kal_uint32 sa_id;
kal_bool result;
} n3sam_wt_wifi_sa_rsp_struct;
/* For DHL logging struct */
typedef n3sam_wt_wifi_filter_update_struct n3sam_wt_wifi_filter_add_req_struct;
typedef n3sam_wt_wifi_filter_update_struct n3sam_wt_wifi_filter_delete_req_struct;
typedef n3sam_wt_wifi_sa_add_struct n3sam_wt_sa_add_req_struct;
typedef n3sam_wt_wifi_sa_add_struct n3sam_wt_sa_modify_req_struct;
typedef n3sam_wt_wifi_sa_delete_struct n3asm_wt_sa_delete_req_struct;
typedef n3sam_wt_wifi_sa_rsp_struct n3sam_wt_sa_add_cnf_struct;
typedef n3sam_wt_wifi_sa_rsp_struct n3sam_wt_sa_modify_cnf_struct;
typedef n3sam_wt_wifi_sa_rsp_struct n3sam_wt_sa_delete_cnf_struct;
#endif // __INC_N3SAM_STRUCT_H