Deleted Added
full compact
bpf.h (190225) bpf.h (190944)
1/*-
2 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
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.

--- 902 unchanged lines hidden (view full) ---

911/*
912 * Macros for insn array initializers.
913 */
914#define BPF_STMT(code, k) { (u_short)(code), 0, 0, k }
915#define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k }
916
917#if __STDC__ || defined(__cplusplus)
918extern int bpf_validate(const struct bpf_insn *, int);
1/*-
2 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
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.

--- 902 unchanged lines hidden (view full) ---

911/*
912 * Macros for insn array initializers.
913 */
914#define BPF_STMT(code, k) { (u_short)(code), 0, 0, k }
915#define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k }
916
917#if __STDC__ || defined(__cplusplus)
918extern int bpf_validate(const struct bpf_insn *, int);
919extern u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int);
919extern u_int bpf_filter(struct bpf_insn *, u_char *, u_int, u_int);
920#else
921extern int bpf_validate();
922extern u_int bpf_filter();
923#endif
924
925/*
926 * Number of scratch memory words (for BPF_LD|BPF_MEM and BPF_ST).
927 */
928#define BPF_MEMWORDS 16
929
930#ifdef __cplusplus
931}
932#endif
933
934#endif
920#else
921extern int bpf_validate();
922extern u_int bpf_filter();
923#endif
924
925/*
926 * Number of scratch memory words (for BPF_LD|BPF_MEM and BPF_ST).
927 */
928#define BPF_MEMWORDS 16
929
930#ifdef __cplusplus
931}
932#endif
933
934#endif