Andrey Simonenko writes:
> I read bpf(4) man page and have one question about BPF.
> Suppose I open one of free BPF devices /dev/bpf??. I can dup(2)
> descriptor of opened BPF device and get so called shared interface.
>
> Can I setup different filters on each descriptor for opened BPF device?
Nope. Quoting dup(2):
The object referenced by the descriptor does not distinguish between oldd
and newd in any way. Thus if newd and oldd are duplicate references to
an open file, read(2), write(2) and lseek(2) calls all move a single
pointer into the file, and append mode, non-blocking I/O and asynchronous
I/O options are shared between the references.
-Archie
__________________________________________________________________________
Archie Cobbs * Packet Design * http://www.packetdesign.com
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message