Forums - raw sockets

8 posts / 0 new
Last post
raw sockets
gvandenbosch
Join Date: 21 Sep 14
Posts: 4
Posted: Mon, 2015-03-09 08:27
Hello, Is it possible to open a raw socket on the device instead of TCP or UDP? I can't seem to find information about this in the manual. I would like to receive/send packets on MAC address level. If not, would this be possible in the near feature? Cheers, Gerard
  • Up0
  • Down0
OranGu
Profile picture
Join Date: 10 Oct 14
Location: San Jose
Posts: 33
Posted: Mon, 2015-03-09 12:06

Yes, it is possible to open a raw socket on the device. You can refer to ath_raw_rx function for sample usage. The qcom_socket API has to be  opened with socket type=SOCK_RAW_TYPE. 

BR, 

Oran

 

  • Up0
  • Down0
gvandenbosch
Join Date: 21 Sep 14
Posts: 4
Posted: Tue, 2015-03-10 11:16
Thanks for the fast reply. That is what I am looking for. Maybe something that could be included in the manual. It now only says SOCK_DGRAM or SOCK_STREAM is possible at qcom_socket. Cheers, Gerard
  • Up0
  • Down0
adrian.nicolau
Join Date: 29 Jan 18
Posts: 3
Posted: Tue, 2018-01-30 09:07
Is it possible to open an IPv6 raw socket? I tried several protocols as argument for qcom_socket(AF_INET6, SOCK_RAW_TYPE, protocol), but return code was always -1. Thanks, Adrian
  • Up0
  • Down0
jbhanu Moderator
Join Date: 6 Feb 17
Posts: 80
Posted: Tue, 2018-01-30 21:40

Can you please let me know, Which  SDK you are using ?

  • Up0
  • Down0
adrian.nicolau
Join Date: 29 Jan 18
Posts: 3
Posted: Tue, 2018-01-30 23:53

I'm using SDK v3.3.4, Firmware version is  3.3.4.32776.

  • Up0
  • Down0
jbhanu Moderator
Join Date: 6 Feb 17
Posts: 80
Posted: Fri, 2018-02-02 11:33

Hi , 

Yes. It supports. Have you gone through througput demo.

  • Up0
  • Down0
adrian.nicolau
Join Date: 29 Jan 18
Posts: 3
Posted: Sun, 2018-02-04 23:45

All SOCK_RAW_TYPE sockets demonstrated in the host SDK belong to family ATH_AF_INET, hence my initial question concerning IPv6.

  • 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.