From 2861e20e63785e4e26808d8a851f0f8ab299046a Mon Sep 17 00:00:00 2001 From: kib Date: Sun, 25 Apr 2010 16:43:41 +0000 Subject: Provide compat32 shims for bpf(4), except zero-copy facilities. bd_compat32 field of struct bpf_d is kept unconditionally to not impose the requirement of including "opt_compat.h" on all numerous users of bpfdesc.h. Submitted by: jhb (version for 6.x) Reviewed and tested by: emaste MFC after: 2 weeks --- sys/net/bpfdesc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/net/bpfdesc.h') diff --git a/sys/net/bpfdesc.h b/sys/net/bpfdesc.h index 5784763..03cb20d 100644 --- a/sys/net/bpfdesc.h +++ b/sys/net/bpfdesc.h @@ -97,6 +97,7 @@ struct bpf_d { u_int64_t bd_wfcount; /* number of packets that matched write filter */ u_int64_t bd_wdcount; /* number of packets dropped during a write */ u_int64_t bd_zcopy; /* number of zero copy operations */ + u_char bd_compat32; /* 32-bit stream on LP64 system */ }; /* Values for bd_state */ -- cgit v1.1