Deleted Added
full compact
ng_bpf.c (59728) ng_bpf.c (64508)
1
2/*
3 * ng_bpf.c
4 *
5 * Copyright (c) 1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Author: Archie Cobbs <archie@whistle.com>
38 *
1
2/*
3 * ng_bpf.c
4 *
5 * Copyright (c) 1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Author: Archie Cobbs <archie@whistle.com>
38 *
39 * $FreeBSD: head/sys/netgraph/ng_bpf.c 59728 2000-04-28 17:09:00Z julian $
39 * $FreeBSD: head/sys/netgraph/ng_bpf.c 64508 2000-08-10 22:45:54Z archie $
40 * $Whistle: ng_bpf.c,v 1.3 1999/12/03 20:30:23 archie Exp $
41 */
42
43/*
44 * BPF NETGRAPH NODE TYPE
45 *
46 * This node type accepts any number of hook connections. With each hook
47 * is associated a bpf(4) filter program, and two hook names (each possibly

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

89static ng_disconnect_t ng_bpf_disconnect;
90
91/* Internal helper functions */
92static int ng_bpf_setprog(hook_p hook, const struct ng_bpf_hookprog *hp);
93
94/* Parse type for one struct bfp_insn */
95static const struct ng_parse_struct_info ng_bpf_insn_type_info = {
96 {
40 * $Whistle: ng_bpf.c,v 1.3 1999/12/03 20:30:23 archie Exp $
41 */
42
43/*
44 * BPF NETGRAPH NODE TYPE
45 *
46 * This node type accepts any number of hook connections. With each hook
47 * is associated a bpf(4) filter program, and two hook names (each possibly

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

89static ng_disconnect_t ng_bpf_disconnect;
90
91/* Internal helper functions */
92static int ng_bpf_setprog(hook_p hook, const struct ng_bpf_hookprog *hp);
93
94/* Parse type for one struct bfp_insn */
95static const struct ng_parse_struct_info ng_bpf_insn_type_info = {
96 {
97 { "code", &ng_parse_int16_type },
98 { "jt", &ng_parse_int8_type },
99 { "jf", &ng_parse_int8_type },
100 { "k", &ng_parse_int32_type },
97 { "code", &ng_parse_hint16_type },
98 { "jt", &ng_parse_uint8_type },
99 { "jf", &ng_parse_uint8_type },
100 { "k", &ng_parse_uint32_type },
101 { NULL }
102 }
103};
104static const struct ng_parse_type ng_bpf_insn_type = {
105 &ng_parse_struct_type,
106 &ng_bpf_insn_type_info
107};
108

--- 395 unchanged lines hidden ---
101 { NULL }
102 }
103};
104static const struct ng_parse_type ng_bpf_insn_type = {
105 &ng_parse_struct_type,
106 &ng_bpf_insn_type_info
107};
108

--- 395 unchanged lines hidden ---