diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-04-02 11:43:53 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-04-02 11:43:53 +0000 |
| commit | 09ee2f6cc5ed4a4345e5585570b45ff33d07f09d (patch) | |
| tree | 30b93c5a3ec3130a72b9628a04b1d6bc47db3331 /sbin | |
| parent | ab4680874f2790e4821cb4c1bb6ab9ca51d8556e (diff) | |
Notes
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/ipfw/ipfw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c index 5adeb667ad65..685f72ea89b9 100644 --- a/sbin/ipfw/ipfw.c +++ b/sbin/ipfw/ipfw.c @@ -15,7 +15,7 @@ * * NEW command line interface for IP firewall facility * - * $Id: ipfw.c,v 1.21 1996/02/24 13:39:46 phk Exp $ + * $Id: ipfw.c,v 1.15.4.2 1996/02/26 15:27:00 phk Exp $ * */ @@ -175,7 +175,7 @@ show_ipfw(chain) comma = " "; for (i=0;i<chain->fw_ndp;i++) { printf("%s%d",comma,chain->fw_pts[chain->fw_nsp+i]); - if (i==chain->fw_nsp && (chain->fw_flg & IP_FW_F_DRNG)) + if (i==0 && (chain->fw_flg & IP_FW_F_DRNG)) comma = "-"; else comma = ","; @@ -281,7 +281,7 @@ show_usage(str) "\t\tlist [number]\n" "\t\tzero [number]\n" "\trule:\taction proto src dst extras...\n" -"\t\taction: {allow|deny|reject|count}[,log]\n" +"\t\taction: {allow|deny|reject|count} [log]\n" "\t\tproto: {ip|tcp|udp|icmp}}\n" "\t\tsrc: {any|ip[{/bits|:mask}]} [{port|port-port},...]\n" "\t\tdst: {any|ip[{/bits|:mask}]} [{port|port-port},...]\n" @@ -362,7 +362,7 @@ fill_port(cnt, ptr, off, av) sc = 0; i = 1; } - while (1) { + while (*av != NULL) { s = strchr(*av,','); if (s) { sc = *s; |
