summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1996-06-26 16:48:45 +0000
committerdm <dm@cvs.openbsd.org>1996-06-26 16:48:45 +0000
commit696b68589f018a5f70a90b3277b898c20e211a75 (patch)
tree60fc04718d2b89109408b2cf20504e2a00803565 /sbin
parentf80241dcd35f140feb7d23ba4883f362e1866b20 (diff)
Print empty TCP flags checks (like '/SA' ) properly
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipf/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipf/parse.c b/sbin/ipf/parse.c
index a6ecc2c5b73..059add08b0d 100644
--- a/sbin/ipf/parse.c
+++ b/sbin/ipf/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.4 1996/06/23 14:30:55 deraadt Exp $ */
+/* $OpenBSD: parse.c,v 1.5 1996/06/26 16:48:44 dm Exp $ */
/*
* (C)opyright 1993-1996 by Darren Reed.
@@ -1133,7 +1133,7 @@ struct frentry *fp;
if (code)
(void)printf("code %d ", code);
}
- if (fp->fr_proto == IPPROTO_TCP && fp->fr_tcpf) {
+ if (fp->fr_proto == IPPROTO_TCP && (fp->fr_tcpf || fp->fr_tcpfm)) {
(void)printf("flags ");
for (s = flagset, t = flags; *s; s++, t++)
if (fp->fr_tcpf & *t)