Ashwin Patwekar
|
ioctl-BIOCSETF for bpf filter in QNX 6.3.0
|
Ashwin Patwekar
11/05/2009 3:27 AM
post41396
|
ioctl-BIOCSETF for bpf filter in QNX 6.3.0
In QNX version 6.3.0 SP 1 with External Networking TDK for ppc target we are trying to use bpf filter for receiving
packets. The ioctl operation with BIOCSETF and BIOCIMMEDIATE gives an error. Following are the steps we are following
and status what we get.
1. open(BPF_DEVICE, O_RDONLY, 0) - success
2. ioctl(iHdl, BIOCSBLEN, &iPktLen) - success
3. ioctl(iHdl, BIOCSETIF, &stIfr) - en0 - success
4. ioctl(iHdl, BIOCIMMEDIATE, &ciImmediate ) - Error - Inappropriate I/O control operation
5. ioctl(iHdl, BIOCSETF, &bpf_program) - Error -> Invalid Argument
We have loaded nfm-bpf.so and also without executing step 4 & 5 we are able to receive packets. This gives us all kind
of packets on the network.
|
|
|