Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/bpf Add bpf program source in a comment.
details: https://anonhg.NetBSD.org/src/rev/c8d44645f073
branches: trunk
changeset: 754131:c8d44645f073
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Apr 21 11:19:44 2010 +0000
description:
Add bpf program source in a comment.
diffstat:
tests/net/bpf/t_div-by-zero.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 11f466379d97 -r c8d44645f073 tests/net/bpf/t_div-by-zero.c
--- a/tests/net/bpf/t_div-by-zero.c Wed Apr 21 11:16:41 2010 +0000
+++ b/tests/net/bpf/t_div-by-zero.c Wed Apr 21 11:19:44 2010 +0000
@@ -20,6 +20,12 @@
ATF_TC_BODY(div_by_zero, tc)
{
struct bpf_program bp;
+ int fd;
+
+ /*
+ * Source code for following program:
+ * link[0:4]/0 = 2
+ */
struct bpf_insn bins[] = {
{ 0x20, 0, 0, 0x00000000 },
{ 0x34, 0, 0, 0x00000000 },
@@ -27,7 +33,6 @@
{ 0x6, 0, 0, 0x00000060 },
{ 0x6, 0, 0, 0x00000000 },
};
- int fd;
bp.bf_len = __arraycount(bins);
bp.bf_insns = bins;
Home |
Main Index |
Thread Index |
Old Index