Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - open BPF filter - open failed (error no 2): (7 Items)
   
open BPF filter - open failed (error no 2)  
I am using BPF filter to capture Qnet packets and can do it successfully when I compile separate executable. Now I am 
trying to do same thing in a shared library to add an new option for lsm-qnet.so - resolve=myresolve. Here I am using 
nr_template.c in ..../lsm/qnet/doc/ directory and building my shared library nr-myresolve.so. In this the open fails 
when trying to open /dev/bpf0 in read only mode. Can any one help me to get the thing working?
Re: open BPF filter - open failed (error no 2)  
Lalit Koli wrote:
> I am using BPF filter to capture Qnet packets and can do it successfully when I compile separate executable. Now I am 
trying to do same thing in a shared library to add an new option for lsm-qnet.so - resolve=myresolve. Here I am using 
nr_template.c in ..../lsm/qnet/doc/ directory and building my shared library nr-myresolve.so. In this the open fails 
when trying to open /dev/bpf0 in read only mode. Can any one help me to get the thing working?
>
>
>
> _______________________________________________
>
> Networking Drivers
> http://community.qnx.com/sf/go/post41679
>
>   

Hi,

What version of QNX are you using? (And what network driver?)
Can you list /dev/bpf0 and/or /dev/bpf?

/P
Re: open BPF filter - open failed (error no 2)  
I am using QNX 6.4.1 and over ppc and pq2fads BSP. I can see bpf and bpf0 both in /dev directory.
Re: open BPF filter - open failed (error no 2)  
Lalit Koli wrote:
> I am using QNX 6.4.1 and over ppc and pq2fads BSP. I can see bpf and bpf0 both in /dev directory.
>   
I can't find that BSP for 6.4.1 here:
http://community.qnx.com/sf/wiki/do/viewPage/projects.bsp/wiki/BSPAndDrivers

You may want to try the BSP project's forums or support:
http://community.qnx.com/sf/discussion/do/listForums/projects.bsp/discussion

/P
Re: open BPF filter - open failed (error no 2)  
We were using 6.3.0 and then we migrated to 6.4.1, the BSP remains same as we were using earlier we had only upgraded 
the OS version.
Re: open BPF filter - open failed (error no 2)  
Can any one help me on this topic?
Re: open BPF filter - open failed (error no 2)  
What did you find out from the BSP forums and/or support?
/P