Skip navigation.
The QNX Community Portal

View topic - RAW Socket Porting

RAW Socket Porting

QNX Application portings.

RAW Socket Porting

Postby nagarjuna » Mon Jul 18, 2011 4:13 am

Hi, I am porting an linux application which uses socket call for send and receive RAW Ethernet packets. I am using QNX 6.3.2.
socket (PF_PACKET, SOCK_RAW, htons (ETH_P_ALL).

In QNX PF_PACKET and ETH_P_ALL is not available.
I read that BPF can be used to implement send/receive raw Ethernet packets.And also QNX 6.3.2 doesn't support BPF. Is there any other approach to achive this.
Also ETH_P_ALL is used to receive all kinds of packets in linux.What is the equivalent in QNX.
New Member
Posts: 7
Joined: Wed May 04, 2011 12:57 pm

Postby Tim » Mon Jul 18, 2011 9:47 pm

Senior Member
Posts: 1400
Joined: Wed Mar 10, 2004 12:28 am

Re: RAW Socket Porting

Postby » Tue Aug 09, 2011 10:11 am

I also need this functionality for version 6.3.2 because I need to insert QOS and VLAN tag dynamically into the ethernet header.

I notice that I can use the socket(PF_INET,SOCK_RAW,0) call. What does this do for me?
Really I want access to the sockaddr_ll structure which isn't available but I notice a sockaddr_dl (for DLI )is.

Can I use the latter instead.

Does any of the later versions of QNX support the functionality I need?
New Member
Posts: 1
Joined: Tue Aug 09, 2011 9:59 am

Return to Porting

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest