bpf.h (50477) | bpf.h (52248) |
---|---|
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 * | 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 50477 1999-08-28 01:08:13Z peter $ | 41 * $FreeBSD: head/sys/net/bpf.h 52248 1999-10-15 05:07:00Z msmith $ |
42 */ 43 44#ifndef _NET_BPF_H_ 45#define _NET_BPF_H_ 46 47/* BSD style release date */ 48#define BPF_RELEASE 199606 49 --- 56 unchanged lines hidden (view full) --- 106#define BIOCSETIF _IOW('B',108, struct ifreq) 107#define BIOCSRTIMEOUT _IOW('B',109, struct timeval) 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) | 42 */ 43 44#ifndef _NET_BPF_H_ 45#define _NET_BPF_H_ 46 47/* BSD style release date */ 48#define BPF_RELEASE 199606 49 --- 56 unchanged lines hidden (view full) --- 106#define BIOCSETIF _IOW('B',108, struct ifreq) 107#define BIOCSRTIMEOUT _IOW('B',109, struct timeval) 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) |
|
114 115/* 116 * Structure prepended to each packet. 117 */ 118struct bpf_hdr { 119 struct timeval bh_tstamp; /* time stamp */ 120 bpf_u_int32 bh_caplen; /* length of captured portion */ 121 bpf_u_int32 bh_datalen; /* original length of packet */ --- 119 unchanged lines hidden --- | 116 117/* 118 * Structure prepended to each packet. 119 */ 120struct bpf_hdr { 121 struct timeval bh_tstamp; /* time stamp */ 122 bpf_u_int32 bh_caplen; /* length of captured portion */ 123 bpf_u_int32 bh_datalen; /* original length of packet */ --- 119 unchanged lines hidden --- |