From bb31080cd12375bc16b090515f762f7a0115b2e8 Mon Sep 17 00:00:00 2001 From: pst Date: Tue, 13 Aug 1996 00:41:05 +0000 Subject: Fix tcp/udp port ranges --- sbin/ipfw/ipfw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin') 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; } -- cgit v1.1