Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2: (9 Items)
   
Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2  
Hi,

I am attempting to port an application to run under QNX version 6.3.2. 
The application makes use of the socket(AF_PACKET,SOCK_RAW,0) function call to allow it to create its own ethernet based
 protocol packets. It also makes use of QOS and VLANs in the extended ethernet header.

As far as I can see this functionality does not seem to exist in the io-net network stack include with 6.3.2 , so my 
question is what is the best approach I should take to migrate the application.

Do later version of QNX support this functionality? I know there is a new network stack;- io-pkt. Does this give me what
 I need, and because we are stuck as 6.3.2 is it possible to migrate this stack to run under 6.3.2?

Any ideas, suggestions would be greatly appreciated!!

Thanks

Phil





Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2  
The closest we have is BPF under io-pkt.

Regards,

-seanb

----- Original Message -----
From: Phil Shiel [mailto:community-noreply@qnx.com]
Sent: Wednesday, August 10, 2011 08:39 AM
To: technology-networking <post87971@community.qnx.com>
Subject: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2


Hi,

I am attempting to port an application to run under QNX version 6.3.2. 
The application makes use of the socket(AF_PACKET,SOCK_RAW,0) function call to allow it to create its own ethernet based
 protocol packets. It also makes use of QOS and VLANs in the extended ethernet header.

As far as I can see this functionality does not seem to exist in the io-net network stack include with 6.3.2 , so my 
question is what is the best approach I should take to migrate the application.

Do later version of QNX support this functionality? I know there is a new network stack;- io-pkt. Does this give me what
 I need, and because we are stuck as 6.3.2 is it possible to migrate this stack to run under 6.3.2?

Any ideas, suggestions would be greatly appreciated!!

Thanks

Phil









_______________________________________________

Technology
http://community.qnx.com/sf/go/post87971
Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2  
Hi Sean,

Is this true for all versions of QNX? Can I do the same with 6.3.2 as I can do with 6.5? Or is an upgrade required?

Phil


Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2  
It's true of io-pkt which wasn't released under 6.3.2.  It's theoretically possible to run it under that version but 
that's not a supported or tested configuration.

Regards,

-seanb

----- Original Message -----
From: Phil Shiel [mailto:community-noreply@qnx.com]
Sent: Wednesday, August 10, 2011 09:10 AM
To: technology-networking <post87976@community.qnx.com>
Subject: Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2

Hi Sean,

Is this true for all versions of QNX? Can I do the same with 6.3.2 as I can do with 6.5? Or is an upgrade required?

Phil






_______________________________________________

Technology
http://community.qnx.com/sf/go/post87976
Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2  
Sean Boudreau wrote:
> It's true of io-pkt which wasn't released under 6.3.2.  It's theoretically possible

  It's not theoretical issue ... it's simply possible to implement a raw 
socket interface.
I see here customers asking for a raw socket interface since more than 
20 years  .... how long will you ingnore your customers needs ?

--Armin

>   to run it under that version but that's not a supported or tested configuration.
>
> Regards,
>
> -seanb
>
> ----- Original Message -----
> From: Phil Shiel [mailto:community-noreply@qnx.com]
> Sent: Wednesday, August 10, 2011 09:10 AM
> To: technology-networking<post87976@community.qnx.com>
> Subject: Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2
>
> Hi Sean,
>
> Is this true for all versions of QNX? Can I do the same with 6.3.2 as I can do with 6.5? Or is an upgrade required?
>
> Phil
>
>
>
>
>
>
> _______________________________________________
>
> Technology
> http://community.qnx.com/sf/go/post87976
>
>
>
>
> _______________________________________________
>
> Technology
> http://community.qnx.com/sf/go/post87978
>
>
Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2  
Hi,

Please read the whole thread.  We have the ability to send
raw packets in bpf.  It's not fully supported in 6.3.2 and
it's not the linux interface.  The next version will also
have tun / tap.

Regards,

-seanb

On Wed, Aug 31, 2011 at 04:06:11PM -0400, Armin Steinhoff wrote:
> Sean Boudreau wrote:
> > It's true of io-pkt which wasn't released under 6.3.2.  It's
> theoretically possible
> 
>   It's not theoretical issue ... it's simply possible to implement a raw
> 
> socket interface.
> I see here customers asking for a raw socket interface since more than 
> 20 years  .... how long will you ingnore your customers needs ?
> 
> --Armin
> 
> >   to run it under that version but that's not a supported or tested
> configuration.
> >
> > Regards,
> >
> > -seanb
> >
> > ----- Original Message -----
> > From: Phil Shiel [mailto:community-noreply@qnx.com]
> > Sent: Wednesday, August 10, 2011 09:10 AM
> > To: technology-networking<post87976@community.qnx.com>
> > Subject: Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2
> >
> > Hi Sean,
> >
> > Is this true for all versions of QNX? Can I do the same with 6.3.2 as
> I can do with 6.5? Or is an upgrade required?
> >
> > Phil
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > Technology
> > http://community.qnx.com/sf/go/post87976
> >
> >
> >
> >
> > _______________________________________________
> >
> > Technology
> > http://community.qnx.com/sf/go/post87978
> >
> >
> 
> 
> 
> 
> _______________________________________________
> 
> Technology
> http://community.qnx.com/sf/go/post88551
> 
Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2  
Hi Phil

We achieved similar functionality on io-net using io-net filter module
such that is has ethernet below it and IP above it. so, this way we
can get access to all ethernet frames entering the system and can
generate ethernet frames of our own.

Other scenario is hacking the network driver code but that might not
be a great design.

HTH
Vineet

On Wed, Aug 10, 2011 at 8:39 AM, Phil Shiel <community-noreply@qnx.com> wrote:
>
> Hi,
>
> I am attempting to port an application to run under QNX version 6.3.2.
> The application makes use of the socket(AF_PACKET,SOCK_RAW,0) function call to allow it to create its own ethernet 
based protocol packets. It also makes use of QOS and VLANs in the extended ethernet header.
>
> As far as I can see this functionality does not seem to exist in the io-net network stack include with 6.3.2 , so my 
question is what is the best approach I should take to migrate the application.
>
> Do later version of QNX support this functionality? I know there is a new network stack;- io-pkt. Does this give me 
what I need, and because we are stuck as 6.3.2 is it possible to migrate this stack to run under 6.3.2?
>
> Any ideas, suggestions would be greatly appreciated!!
>
> Thanks
>
> Phil
>
>
>
>
>
>
>
>
>
> _______________________________________________
>
> Technology
> http://community.qnx.com/sf/go/post87971
>
>
Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2  
By network filter I assume you don't mean BPF.

If I understand things correctly BPF (Berkley Packet Filter) can only be used at 6.3.2 to read raw packets not send them
, or has this changed?

Phil
Re: Raw (Ethernet) Sockets over io-net net stack on QNX 6.3.2  
No Phil, I did not refer to BPF, I meant custom module written to be
plugged in at runtime into qnx io-net framework. Look around for
up-filter in qnx networking documentation.......


On Mon, Aug 15, 2011 at 11:01 AM, Phil Shiel <community-noreply@qnx.com> wrote:
>
> By network filter I assume you don't mean BPF.
>
> If I understand things correctly BPF (Berkley Packet Filter) can only be used at 6.3.2 to read raw packets not send 
them, or has this changed?
>
> Phil
>
>
>
> _______________________________________________
>
> Technology
> http://community.qnx.com/sf/go/post88105
>
>