1/* 2 * Copyright (c) 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from the Stanford/CMU enet packet filter, 6 * (net/enet.c) distributed as part of 4.3BSD, and code contributed 7 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence 8 * Berkeley Laboratory. --- 24 unchanged lines hidden (view full) --- 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)bpf.h 8.1 (Berkeley) 6/10/93 39 * @(#)bpf.h 1.34 (LBL) 6/16/96 40 * |
41 * $FreeBSD: head/sys/net/bpf.h 58192 2000-03-18 06:30:42Z rwatson $ |
42 */ 43 44#ifndef _NET_BPF_H_ 45#define _NET_BPF_H_ 46 47/* BSD style release date */ 48#define BPF_RELEASE 199606 49 --- 58 unchanged lines hidden (view full) --- 108#define BIOCGRTIMEOUT _IOR('B',110, struct timeval) 109#define BIOCGSTATS _IOR('B',111, struct bpf_stat) 110#define BIOCIMMEDIATE _IOW('B',112, u_int) 111#define BIOCVERSION _IOR('B',113, struct bpf_version) 112#define BIOCGRSIG _IOR('B',114, u_int) 113#define BIOCSRSIG _IOW('B',115, u_int) 114#define BIOCGHDRCMPLT _IOR('B',116, u_int) 115#define BIOCSHDRCMPLT _IOW('B',117, u_int) |
116#define BIOCGSEESENT _IOR('B',118, u_int) 117#define BIOCSSEESENT _IOW('B',119, u_int) |
118 119/* 120 * Structure prepended to each packet. 121 */ 122struct bpf_hdr { 123 struct timeval bh_tstamp; /* time stamp */ 124 bpf_u_int32 bh_caplen; /* length of captured portion */ 125 bpf_u_int32 bh_datalen; /* original length of packet */ --- 119 unchanged lines hidden --- |