summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-20 12:20:42 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-20 12:20:42 +0000
commitd9f1466781a8afddb7ebbd57ed1216d4190005a7 (patch)
tree230e56c1550bc1c1ed63caca1d3755d27b10d0b3 /cpukit
parentcdaff4d463fed0e27459d982b1434b6addbbaac3 (diff)
downloadrtems-d9f1466781a8afddb7ebbd57ed1216d4190005a7.tar.bz2
2004-04-20 Ralf Corsepius <ralf_corsepius@rtems.org>
* libnetworking/net/bpf.h: Partial update from FreeBSD.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libnetworking/net/bpf.h18
2 files changed, 13 insertions, 9 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index e4bd9a488a..20a94a2f36 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,7 @@
+2004-04-20 Ralf Corsepius <ralf_corsepius@rtems.org>
+
+ * libnetworking/net/bpf.h: Partial update from FreeBSD.
+
2004-04-19 Ralf Corsepius <ralf_corsepius@rtems.org>
* libnetworking/sys/sysctl.h: Partial update from FreeBSD.
diff --git a/cpukit/libnetworking/net/bpf.h b/cpukit/libnetworking/net/bpf.h
index 7847d72470..df21575640 100644
--- a/cpukit/libnetworking/net/bpf.h
+++ b/cpukit/libnetworking/net/bpf.h
@@ -127,7 +127,7 @@ struct bpf_hdr {
* will insist on inserting padding; hence, sizeof(struct bpf_hdr) won't work.
* Only the kernel needs to know about it; applications use bh_hdrlen.
*/
-#ifdef KERNEL
+#ifdef _KERNEL
#define SIZEOF_BPF_HDR 18
#endif
@@ -219,13 +219,13 @@ struct bpf_insn {
#define BPF_STMT(code, k) { (u_short)(code), 0, 0, k }
#define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k }
-#ifdef KERNEL
-int bpf_validate __P((struct bpf_insn *, int));
-void bpf_tap __P((struct ifnet *, u_char *, u_int));
-void bpf_mtap __P((struct ifnet *, struct mbuf *));
-void bpfattach __P((struct ifnet *, u_int, u_int));
-void bpfilterattach __P((int));
-u_int bpf_filter __P((struct bpf_insn *, u_char *, u_int, u_int));
+#ifdef _KERNEL
+int bpf_validate(struct bpf_insn *, int);
+void bpf_tap(struct ifnet *, u_char *, u_int);
+void bpf_mtap(struct ifnet *, struct mbuf *);
+void bpfattach(struct ifnet *, u_int, u_int);
+void bpfilterattach(int);
+u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int);
#endif
/*
@@ -233,4 +233,4 @@ u_int bpf_filter __P((struct bpf_insn *, u_char *, u_int, u_int));
*/
#define BPF_MEMWORDS 16
-#endif
+#endif /* _NET_BPF_H_ */