Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Converting io-net filter to pfil hook: Page 1 of 4 (4 Items)
   
Converting io-net filter to pfil hook  
We are attempting to migrate an io-net filter to an io-pkt pfil hook.
Thus far, we've only had limited success. When we try to mount our hook,
we end up with quite a few undefined symbols. These symbols are defined
in shared libraries that we build from our sources and then link into
the hook. The LD_LIBRARY_PATH variable is set to the location of the
required shared object files. Unfortunately, mount can't seem to find
them. Is there some other way to specify where mount should look for
shared libraries or is shared library use by LSM's just not supported?

 

The answer to the question above seems be "LSM's can load shared
modules" because when we tried starting a second instance of io-pkt we
were able to mount our pfil hook. Unfortunately, the second instance of
io-pkt didn't have any interfaces. Additionally, starting the second
instance of io-pkt seems to kill the existing, working interfaces (i.e.
we can no longer telnet into the box, ifconfig only lists lo0). So,
mounting our hook onto a second io-pkt instance doesn't do us much good
because there are no interfaces for data. When we try to mount a driver
onto the second io-pkt instance, the mount fails (Can't mount / (type
io-pkt2)). We tried creating the second instance of io-pkt because we
were using a second instance of io-net for our filter. Having two
instances of the stack probably doesn't make much sense because we want
to attach our hook to one interface on an Intel 82563 dual interface
NIC.

 

Any ideas on what we're missing would be appreciated?

 

Mark