Ethernet Packets

bridged with qdn.public.ddk.network
Post Reply
Mike Beech

Ethernet Packets

Post by Mike Beech » Mon Jul 28, 2003 4:57 pm

Does anyone know how to handle raw ethernet packets under Qnx 6.2?

I need to be able to read and write raw packets for a QoS/Firewall
application.

I can do this under Linux no problem but would prefer to do this under Qnx.

Sean Boudreau

Re: Ethernet Packets

Post by Sean Boudreau » Tue Jul 29, 2003 1:05 pm

You would have to write an io-net filter which would sit
above the drivers. Such a filter would see packets on
their way to / from the drivers.

-seanb


Mike Beech <mike.beechuk@virgin.net> wrote:
Does anyone know how to handle raw ethernet packets under Qnx 6.2?

I need to be able to read and write raw packets for a QoS/Firewall
application.

I can do this under Linux no problem but would prefer to do this under Qnx.

Mike Beech

Re: Ethernet Packets

Post by Mike Beech » Tue Jul 29, 2003 2:57 pm

Sean Boudreau wrote:

You would have to write an io-net filter which would sit
above the drivers. Such a filter would see packets on
their way to / from the drivers.

-seanb
Mike Beech <mike.beechuk@virgin.net> wrote:
Does anyone know how to handle raw ethernet packets under Qnx 6.2?

I need to be able to read and write raw packets for a QoS/Firewall
application.

I can do this under Linux no problem but would prefer to do this under Qnx.
Thought that might be the case. Thanks for confirming.
We are trying to port an application from Linux to QNX which acts as a QoS
enforcement point on the LAN/WAN interface. Have managed to get the NICs
into promiscuous mode so part of the battle is won. Unfortunately we cant
work at the IP level as we have to insert/remove shim headers before the
IP packet hence we have to work at layer2. Thanks again - time to hit the
learning curve,

Dave Edwards

Re: Ethernet Packets

Post by Dave Edwards » Thu Aug 14, 2003 9:22 pm

Mike,

Writing the filters is not so bad. There are some good examples out
there and I'm sure that Sean could provide you with one (if you ask him
nicely!).

Once you've got a sample filter running, modifying the packets is
relatively straightforward


Dave


Mike Beech wrote:
Sean Boudreau wrote:



You would have to write an io-net filter which would sit
above the drivers. Such a filter would see packets on
their way to / from the drivers.


-seanb



Mike Beech <mike.beechuk@virgin.net> wrote:

Does anyone know how to handle raw ethernet packets under Qnx 6.2?


I need to be able to read and write raw packets for a QoS/Firewall
application.


I can do this under Linux no problem but would prefer to do this under Qnx.


Thought that might be the case. Thanks for confirming.
We are trying to port an application from Linux to QNX which acts as a QoS
enforcement point on the LAN/WAN interface. Have managed to get the NICs
into promiscuous mode so part of the battle is won. Unfortunately we cant
work at the IP level as we have to insert/remove shim headers before the
IP packet hence we have to work at layer2. Thanks again - time to hit the
learning curve,


Post Reply

Return to “qdn.public.ddk.network”