summaryrefslogtreecommitdiff
path: root/sbin/ipf
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-01-20 06:36:53 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-01-20 06:36:53 +0000
commitf49044f612979553a6a98532f86ee6b4c6509808 (patch)
treeea76fedc58819522910f54844cc5b0fcda1612f6 /sbin/ipf
parentd6d9b7e7c7d0c89ebbcc6d2b403b3cbd4e90f6c2 (diff)
Print the service name instead of the number if available.
Similar to the problem found by millert@ (next thing to commit).
Diffstat (limited to 'sbin/ipf')
-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 1ff6e70069d..bdecc3bb9d3 100644
--- a/sbin/ipf/parse.c
+++ b/sbin/ipf/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.36 2001/01/17 05:00:59 fgsch Exp $ */
+/* $OpenBSD: parse.c,v 1.37 2001/01/20 06:36:52 fgsch Exp $ */
/*
* Copyright (C) 1993-2000 by Darren Reed.
@@ -1103,7 +1103,7 @@ struct frentry *fp;
if (fp->fr_ip.fi_fl & FI_TCPUDP) {
printf("proto tcp/udp ");
pr = -1;
- } else if ((pr = fp->fr_mip.fi_p)) {
+ } else if ((pr = fp->fr_ip.fi_p)) {
if ((p = getprotobynumber(fp->fr_proto)))
printf("proto %s ", p->p_name);
else