summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_bpf.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-08-10 22:45:54 +0000
committerarchie <archie@FreeBSD.org>2000-08-10 22:45:54 +0000
commit91912098c3157074ed463a4abc7a017ad139c988 (patch)
tree161ead128c5bf9a6f2f11f6c8e543fbcaa650e17 /sys/netgraph/ng_bpf.c
parent16765ea99728e9b39c638c771a3e710f85ef76c3 (diff)
downloadFreeBSD-src-91912098c3157074ed463a4abc7a017ad139c988.zip
FreeBSD-src-91912098c3157074ed463a4abc7a017ad139c988.tar.gz
Take advantage of the new unsigned and hex integer types.
Diffstat (limited to 'sys/netgraph/ng_bpf.c')
-rw-r--r--sys/netgraph/ng_bpf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/ng_bpf.c b/sys/netgraph/ng_bpf.c
index 8ec7bac..c198b11 100644
--- a/sys/netgraph/ng_bpf.c
+++ b/sys/netgraph/ng_bpf.c
@@ -94,10 +94,10 @@ static int ng_bpf_setprog(hook_p hook, const struct ng_bpf_hookprog *hp);
/* Parse type for one struct bfp_insn */
static const struct ng_parse_struct_info ng_bpf_insn_type_info = {
{
- { "code", &ng_parse_int16_type },
- { "jt", &ng_parse_int8_type },
- { "jf", &ng_parse_int8_type },
- { "k", &ng_parse_int32_type },
+ { "code", &ng_parse_hint16_type },
+ { "jt", &ng_parse_uint8_type },
+ { "jf", &ng_parse_uint8_type },
+ { "k", &ng_parse_uint32_type },
{ NULL }
}
};
OpenPOWER on IntegriCloud