This looks like a cool option that you guys might want to adopt a method for
using.
----- Forwarded message from Robert Watson <rwatson@xxxxxxxxxxx> -----
From: Robert Watson <rwatson@xxxxxxxxxxx>
Date: Fri, 17 Mar 2000 22:30:43 -0800 (PST)
To: cvs-committers@xxxxxxxxxxx, cvs-all@xxxxxxxxxxx
Subject: cvs commit: src/share/man/man4 bpf.4 src/sys/net bpf.c bpf.h
bpfdesc.h
rwatson 2000/03/17 22:30:43 PST
Modified files:
share/man/man4 bpf.4
sys/net bpf.c bpf.h bpfdesc.h
Log:
Introduce a new bd_seesent flag to the BPF descriptor, indicating whether or
not the current BPF device should report locally generated packets or not.
This allows sniffing applications to see only packets that are not generated
locally, which can be useful for debugging bridging problems, or other
situations where MAC addresses are not sufficient to identify locally
sourced packets. Default to true for this flag, so as to provide existing
behavior by default.
Introduce two new ioctls, BIOCGSEESENT and BIOCSSEESENT, which may be used
to manipulate this flag from userland, given appropriate privilege.
Modify bpf.4 to document these two new ioctl arguments.
Reviewed by: asmodai
Revision Changes Path
1.22 +9 -1 src/share/man/man4/bpf.4
1.60 +20 -1 src/sys/net/bpf.c
1.22 +3 -1 src/sys/net/bpf.h
1.15 +2 -1 src/sys/net/bpfdesc.h
----- End forwarded message -----
--
Bill Fumerola - Network Architect
Computer Horizons Corp - CVM
e-mail: billf@xxxxxxxxxxxxxx / billf@xxxxxxxxxxx
Office: 800-252-2421 x128 / Cell: 248-761-7272