diff options
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libnetworking/net/bpf.h | 18 |
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_ */ |