From owner-cvs-all Fri Mar 17 22:30:50 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9217E37BB2E; Fri, 17 Mar 2000 22:30:43 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Received: (from rwatson@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA49563; Fri, 17 Mar 2000 22:30:43 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Message-Id: <200003180630.WAA49563@freefall.freebsd.org> From: Robert Watson Date: Fri, 17 Mar 2000 22:30:43 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/share/man/man4 bpf.4 src/sys/net bpf.c bpf.h bpfdesc.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message