求教:高通平台RNDIS(902D)下Firewalls 设置!
时间:10-02
整理:3721RD
点击:
在高通demo CMAP_ConnectionManager进程中,通过QMI设置防火墙,
发送QMI消息:QCMAP_CM_ENABLE_FIREWALL,没做其他设置。
QMI req的数据结构体:
/** Request Message; Enables the firewall setting. */
typedef struct {
/* Mandatory */
/* Mobile AP Handle */
uint32_t mobile_ap_handle;
/**< Handle identifying the mobile AP call instance.
The value must be the handle previously returned by
QMI_QCMAP_MOBILE_ AP_ENABLE_REQ.
*/
/* Mandatory */
/* Packets Allowed */
uint8_t pkts_allowed;
/**< Packets allowed operation. Values: \n
- TRUE -- Packets matching the firewall rule are allowed \n
- FALSE -- Packets matching the firewall rule are dropped
*/
}qcmap_enable_firewall_setting_req_msg_v01; /* Message */
其中pkts_allowed 设置成1,外网就完全不能用了。
求大神指导RNDIS模式下防火墙设置,有没有高通防火请设置及原理的相关资管,不胜感激!
发送QMI消息:QCMAP_CM_ENABLE_FIREWALL,没做其他设置。
QMI req的数据结构体:
/** Request Message; Enables the firewall setting. */
typedef struct {
/* Mandatory */
/* Mobile AP Handle */
uint32_t mobile_ap_handle;
/**< Handle identifying the mobile AP call instance.
The value must be the handle previously returned by
QMI_QCMAP_MOBILE_ AP_ENABLE_REQ.
*/
/* Mandatory */
/* Packets Allowed */
uint8_t pkts_allowed;
/**< Packets allowed operation. Values: \n
- TRUE -- Packets matching the firewall rule are allowed \n
- FALSE -- Packets matching the firewall rule are dropped
*/
}qcmap_enable_firewall_setting_req_msg_v01; /* Message */
其中pkts_allowed 设置成1,外网就完全不能用了。
求大神指导RNDIS模式下防火墙设置,有没有高通防火请设置及原理的相关资管,不胜感激!
通过wireshark抓包分析,和不断的努力尝试,终于找到qualcomm Firewalls的是指方法!