diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-09-08 02:04:48 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-09-08 02:04:48 +0000 |
commit | c403888ab7c796d56d4eb4ed598cd2ee4044b3bf (patch) | |
tree | f5e644b374f7da5c632650a6b9c24369d5036149 | |
parent | e66cec09647233fc84fdc6732df00f64b37854e0 (diff) |
Make tcpdump of pflog interfaces work with 'net <net>' expression.
My problem, canacar@'s fix.
ok sthen@ canacar@
-rw-r--r-- | lib/libpcap/gencode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index b24e230eef8..fdad382de15 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gencode.c,v 1.34 2010/07/27 04:13:34 canacar Exp $ */ +/* $OpenBSD: gencode.c,v 1.35 2010/09/08 02:04:47 krw Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 @@ -526,7 +526,7 @@ gen_mcmp(offset, size, v, mask) if (mask != 0xffffffff) { s = new_stmt(BPF_ALU|BPF_AND|BPF_K); s->s.k = mask; - b->stmts->next = s; + sappend(b->stmts, s); } return b; } @@ -544,7 +544,7 @@ gen_mcmp_nl(offset, size, v, mask) if (mask != 0xffffffff) { s = new_stmt(BPF_ALU|BPF_AND|BPF_K); s->s.k = mask; - b->stmts->next = s; + sappend(b->stmts, s); } return b; } |