View topic - RAW Socket Porting
RAW Socket Porting
3 posts
• Page 1 of 1
RAW Socket Porting
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.
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.
- nagarjuna
- New Member
- Posts: 7
- Joined: Wed May 04, 2011 12:57 pm
There isn't one
http://www.openqnx.com/PNphpBB2-viewtopic-t3728-.html
Here is a suggestion for 6.4.1
http://www.openqnx.com/PNphpBB2-viewtopic-t11714-.html
Here is another one with a sample filter
http://www.openqnx.com/PNphpBB2-viewtopic-t6661-.html
Tim
http://www.openqnx.com/PNphpBB2-viewtopic-t3728-.html
Here is a suggestion for 6.4.1
http://www.openqnx.com/PNphpBB2-viewtopic-t11714-.html
Here is another one with a sample filter
http://www.openqnx.com/PNphpBB2-viewtopic-t6661-.html
Tim
- Tim
- Senior Member
- Posts: 1519
- Joined: Wed Mar 10, 2004 12:28 am
Re: RAW Socket Porting
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?
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?
- phil.shiel@brush.eu
- New Member
- Posts: 1
- Joined: Tue Aug 09, 2011 9:59 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest