From owner-cvs-all Sat Mar 18 21:55:41 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 04EED37B527; Sat, 18 Mar 2000 21:55:38 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Received: (from rwatson@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id VAA31332; Sat, 18 Mar 2000 21:55:38 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Message-Id: <200003190555.VAA31332@freefall.freebsd.org> From: Robert Watson Date: Sat, 18 Mar 2000 21:55:37 -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/18 21:55:37 PST Modified files: (Branch: RELENG_4) share/man/man4 bpf.4 sys/net bpf.c bpf.h bpfdesc.h Log: MFC: support for BIOC[GS]SEESENT ioctl and bd_seesent BPF descriptor flag Commit message from -CURRENT: rwatson 2000/03/17 22:30:43 PST 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 Revision Changes Path 1.21.2.1 +9 -1 src/share/man/man4/bpf.4 1.59.2.1 +20 -1 src/sys/net/bpf.c 1.21.2.1 +3 -1 src/sys/net/bpf.h 1.14.2.1 +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