tcpdump mailing list archives

[PATCH] FreeBSD: PCAP_D_OUT support for pcap_setdirection()


From: Jung-uk Kim <jkim () FreeBSD org>
Date: Fri, 16 Mar 2007 18:47:29 -0400

FreeBSD has added PCAP_D_OUT support for pcap_setdirection():

http://docs.freebsd.org/cgi/mid.cgi?200702262224.l1QMOEFI013033

Commit log:
-----------------------------

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.

--- >8 --- Skip!!! --- >8 ---

Note that libpcap has been modified to support BPF_D_OUT direction for
pcap_setdirection(3) and PCAP_D_OUT direction is functional now.

-----------------------------

The libpcap patch is here:

http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/libpcap/pcap-bpf.c.diff?r1=1.2&r2=1.3

Please commit this change to libpcap if it is okay.  We'd like to get 
the functionality in the next libpcap import.

Regards,

Jung-uk Kim
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: