Hello everybody I may ask a stupid question but I am completely new to QNX and I have a problem. I have to port a specific application which is currently running on Windows with the library Winpcap and aims at read and write AFDX datas on an ethernet adapter. I rewrote it so that it uses Libpcap, but If am able to read using the filter module nfm-bpf.so, I cannot find any module for writing operations. So I have to write a specific filter module in order to write (playing the same role as nfm-nraw.so which is not open source). I wonder if I can find the source code of a filter module so I can have a start to write my own. I could not find it on the site but I am a bit lost and don't know how i can dowload the necessary files.
You are correct. The nfm-bpf.so is a read only interface. Out of curiosity, does this have to be for io-net? io-pkt already has a fully ported libpcap available for you to use. Robert. -----Original Message----- From: j v [mailto:jeanmarieverret@gmail.com] Sent: Monday, March 10, 2008 9:34 AM To: drivers-networking Subject: porting winpcap->libpcap Hello everybody I may ask a stupid question but I am completely new to QNX and I have a problem. I have to port a specific application which is currently running on Windows with the library Winpcap and aims at read and write AFDX datas on an ethernet adapter. I rewrote it so that it uses Libpcap, but If am able to read using the filter module nfm-bpf.so, I cannot find any module for writing operations. So I have to write a specific filter module in order to write (playing the same role as nfm-nraw.so which is not open source). I wonder if I can find the source code of a filter module so I can have a start to write my own. I could not find it on the site but I am a bit lost and don't know how i can dowload the necessary files. _______________________________________________ Networking Drivers http://community.qnx.com/sf/go/post5641
It does not have to be io-net but I have to be sure everything I use is free, even for commercial use. Furthermore, I have, for the moment, no idea of how to use io-pkt. But, besides that, I am totally free to use whatever I want. I just have to enable the use of Libpcap on QNX. So if it is free I would be perfectly happy to use it.
Hmmm... I'm not sure what you mean by "free". Our products are enver "free" for use in commercial products (http://www.qnx.com/company/hsm/). Let's just put it as anything that you do with io-pkt has the same legal / commercial / royalty model as io-net. Io-pkt is a drop in replacement for io-net / tcpip at the socket level and, given what you are doing, provides a complete BPF interface that will let you port your application in a much more straight forward manner. The Wiki pages cover everything that you need to get started. Robert. -----Original Message----- From: j v [mailto:jeanmarieverret@gmail.com] Sent: Monday, March 10, 2008 11:40 AM To: drivers-networking Subject: Re: RE: porting winpcap->libpcap It does not have to be io-net but I have to be sure everything I use is free, even for commercial use. Furthermore, I have, for the moment, no idea of how to use io-pkt. But, besides that, I am totally free to use whatever I want. I just have to enable the use of Libpcap on QNX. So if it is free I would be perfectly happy to use it. _______________________________________________ Networking Drivers http://community.qnx.com/sf/go/post5647
I am sorry for my bad english, by "free" I actually meant open source. I think I'll follow your counsel and use io-pkt. Anyway thanks a lot for your help.