I am using QNX 6.3.2. In /dev/socket/ there is one bpf device with name bpf.
I did a sample program to open bpf device and attached with en0. It is successful. Now I need to get data from multiple interfaces ,say en0,en1 …and so. Can I attache the same bpf to multiple interfaces??
if ( 0 > ( fd = open( “/dev/bpf0”, O_RDWR ) ) )
err( 1, “open” );
Attaching to “en0”, bound_if has “en0”
if( ioctl( fd, BIOCSETIF, &bound_if ) > 0 )
Now can I attach same ‘fd’ to en1?? If I can,do it gets detach from en0?
Please provide me some idea.Thanks in advance.