From owner-cvs-src@FreeBSD.ORG Mon Feb 26 22:24:14 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED9A616A402; Mon, 26 Feb 2007 22:24:14 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id DD5C313C4A3; Mon, 26 Feb 2007 22:24:14 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l1QMOEQj013034; Mon, 26 Feb 2007 22:24:14 GMT (envelope-from jkim@repoman.freebsd.org) Received: (from jkim@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l1QMOEFI013033; Mon, 26 Feb 2007 22:24:14 GMT (envelope-from jkim) Message-Id: <200702262224.l1QMOEFI013033@repoman.freebsd.org> From: Jung-uk Kim Date: Mon, 26 Feb 2007 22:24:14 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/contrib/libpcap pcap-bpf.c src/share/man/man4 bpf.4 src/sys/net bpf.c bpf.h bpfdesc.h src/usr.bin/netstat bpf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 22:24:15 -0000 jkim 2007-02-26 22:24:14 UTC FreeBSD src repository Modified files: contrib/libpcap pcap-bpf.c share/man/man4 bpf.4 sys/net bpf.c bpf.h bpfdesc.h usr.bin/netstat bpf.c Log: Add three new ioctl(2) commands for bpf(4). - BIOCGDIRECTION and BIOCSDIRECTION get or set the setting determining whether incoming, outgoing, or all packets on the interface should be returned by BPF. Set to BPF_D_IN to see only incoming packets on the interface. Set to BPF_D_INOUT to see packets originating locally and remotely on the interface. Set to BPF_D_OUT to see only outgoing packets on the interface. This setting is initialized to BPF_D_INOUT by default. BIOCGSEESENT and BIOCSSEESENT are obsoleted by these but kept for backward compatibility. - BIOCFEEDBACK sets packet feedback mode. This allows injected packets to be fed back as input to the interface when output via the interface is successful. When BPF_D_INOUT direction is set, injected outgoing packet is not returned by BPF to avoid duplication. This flag is initialized to zero by default. Note that libpcap has been modified to support BPF_D_OUT direction for pcap_setdirection(3) and PCAP_D_OUT direction is functional now. Reviewed by: rwatson Revision Changes Path 1.3 +16 -3 src/contrib/libpcap/pcap-bpf.c 1.48 +40 -6 src/share/man/man4/bpf.4 1.176 +88 -31 src/sys/net/bpf.c 1.47 +14 -2 src/sys/net/bpf.h 1.37 +4 -2 src/sys/net/bpfdesc.h 1.8 +6 -3 src/usr.bin/netstat/bpf.c