Ethernet Packets

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.

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.

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,

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,