diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-20 16:53:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-20 16:53:49 +0000 |
commit | 7e954e14dccf4295a38d4e1a8e49d817c10f3e19 (patch) | |
tree | 46d2ac6e401bf47eb9a3705129e452de02395cc3 /sbin/pfctl/pf_print_state.c | |
parent | f3c0a21852426e6df9e294a4544977603cb897d1 (diff) |
some cleanings recommended by lint; dhartmei ok
Diffstat (limited to 'sbin/pfctl/pf_print_state.c')
-rw-r--r-- | sbin/pfctl/pf_print_state.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c index 59609e0902e..a61bc422213 100644 --- a/sbin/pfctl/pf_print_state.c +++ b/sbin/pfctl/pf_print_state.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_print_state.c,v 1.29 2003/06/07 21:10:47 henning Exp $ */ +/* $OpenBSD: pf_print_state.c,v 1.30 2003/06/20 16:53:48 deraadt Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -227,11 +227,13 @@ print_state(struct pf_state *s, int opts) } else if (s->proto == IPPROTO_UDP && src->state < PFUDPS_NSTATES && dst->state < PFUDPS_NSTATES) { const char *states[] = PFUDPS_NAMES; + printf(" %s:%s\n", states[src->state], states[dst->state]); } else if (s->proto != IPPROTO_ICMP && src->state < PFOTHERS_NSTATES && dst->state < PFOTHERS_NSTATES) { /* XXX ICMP doesn't really have state levels */ const char *states[] = PFOTHERS_NAMES; + printf(" %s:%s\n", states[src->state], states[dst->state]); } else { printf(" %u:%u\n", src->state, dst->state); |