Forums - QApi Packet Filtering

2 posts / 0 new
Last post
QApi Packet Filtering
intercity
Join Date: 23 Oct 18
Posts: 1
Posted: Tue, 2018-11-20 04:42

Hello,

I am toying around with the various features of QCLI_demo, and stumbled upon the packet filtering feature. Unfortunately, I've been unable to set up a working example so far. In my simplest example, I want to reject all packets of all types except ICMP, which should be allowed.

the wlan ChangeDefaultFilterAction function accepts three parameters - action, WoL, header type. I think I am getting the header type parameter wrong. I think it's the value from enum qapi_WLAN_Pkt_Filter_Type_e, but so far, I've been unable to make it work, as seen below.

Quote:

> wlan EnablePktFilter 0
> net ping 8.8.8.8
>
Net: 64 bytes from 8.8.8.8: seq=1 time=20 ms
wlan ChangeDefaultFilterAction 2 0 6

> net ping 8.8.8.8
>
Net: 64 bytes from 8.8.8.8: seq=1 time=40 ms

wlan EnablePktFilter 1
> net ping 8.8.8.8
>
Net: Request timed out

What is the correct usage of the packet filter?

Thanks.

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Mon, 2019-08-26 21:50

Kindly use below commands to apply pakcet filtering for ICMP packets:

> wlan EnableWow
> wlan EnablePktFilter 1
> wlan ChangeDefaultFilterAction 2 1 6   // 6 refers to ICMP packets

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.