summaryrefslogtreecommitdiff
path: root/sys/net/bpf.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-04-26 08:10:11 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-04-26 08:10:11 +0000
commit614590dbe1a8ac6930d78136d54ca9c0a5f7cf9d (patch)
treeba833e6650cdedd6fa38fd1540e52129dede17ae /sys/net/bpf.h
parent2e65d323a74d489f95621f9511363f4b4fb470b8 (diff)
- make the k field in struct bpf_insn unsigned, as promised in the
manual page. - more strict bpf code validation, preventing arbitrary kernel memory read and writes. Some help from frantzen@ and canacar@; testing jmc@ markus@; ok canacar@ henning@ franzen@
Diffstat (limited to 'sys/net/bpf.h')
-rw-r--r--sys/net/bpf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.h b/sys/net/bpf.h
index a118ed946ed..ef1a64e63eb 100644
--- a/sys/net/bpf.h
+++ b/sys/net/bpf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.h,v 1.25 2004/02/06 22:38:58 tedu Exp $ */
+/* $OpenBSD: bpf.h,v 1.26 2004/04/26 08:10:10 otto Exp $ */
/* $NetBSD: bpf.h,v 1.15 1996/12/13 07:57:33 mikel Exp $ */
/*
@@ -235,7 +235,7 @@ struct bpf_insn {
u_int16_t code;
u_char jt;
u_char jf;
- int32_t k;
+ u_int32_t k;
};
/*