summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-08-13 00:41:05 +0000
committerpst <pst@FreeBSD.org>1996-08-13 00:41:05 +0000
commitbb31080cd12375bc16b090515f762f7a0115b2e8 (patch)
treef0138e242ea5ee627a372d68657f265c6c4f5e57 /sbin
parent41f0204afee787186a3608eddc2b9089229f5147 (diff)
downloadFreeBSD-src-bb31080cd12375bc16b090515f762f7a0115b2e8.zip
FreeBSD-src-bb31080cd12375bc16b090515f762f7a0115b2e8.tar.gz
Fix tcp/udp port ranges
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipfw/ipfw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c
index 6d39ba4..fdc5ed0 100644
--- a/sbin/ipfw/ipfw.c
+++ b/sbin/ipfw/ipfw.c
@@ -16,7 +16,7 @@
*
* NEW command line interface for IP firewall facility
*
- * $Id: ipfw.c,v 1.29 1996/07/10 19:44:07 julian Exp $
+ * $Id: ipfw.c,v 1.30 1996/08/05 02:38:51 alex Exp $
*
*/
@@ -499,12 +499,12 @@ fill_port(cnt, ptr, off, arg, proto)
*s++ = '\0';
if (strchr(arg, ','))
errx(1, "port range must be first in list");
- add_port(cnt, ptr, off, *arg ? atoi(arg) : 0x0000);
+ add_port(cnt, ptr, off, *arg ? atoi(arg) : 0x0000, proto);
arg = s;
s = strchr(arg,',');
if (s)
*s++ = '\0';
- add_port(cnt, ptr, off, *arg ? atoi(arg) : 0xffff);
+ add_port(cnt, ptr, off, *arg ? atoi(arg) : 0xffff, proto);
arg = s;
initial_range = 1;
}
OpenPOWER on IntegriCloud