Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2000 00:03:01 -0500
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        Richard Martin <dmartin@origen.com>
Cc:        freebsd-ipfw@FreeBSD.ORG
Subject:   Re: loss of setup option in ipfw
Message-ID:  <20000118000301.C63571@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <3883DFAC.9129CCBA@origen.com>; from dmartin@origen.com on Mon, Jan 17, 2000 at 09:36:12PM -0600
References:  <3882608D.E77903EE@origen.com> <20000117205243.A63571@cc942873-a.ewndsr1.nj.home.com> <3883DFAC.9129CCBA@origen.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 17, 2000 at 09:36:12PM -0600, Richard Martin wrote:
> 
> > > I cannot now use the 'setup' option for TCP packets.  
> > 
> > And the error message is...?
> 
> When this line is run
> 
> /sbin/ipfw add pass tcp from any to {$oip} 25 setup 
> 
> I get: 
> 
> ipfw: error: extraneous filename arguments

Wow... I can't believe this one. ipfw(8) thinks that you are trying to
use the,

       ipfw [-q] [-p preproc [-D macro[=value]] [-U macro]] file

Format for the command. You would not happen to have a file named
'setup' in the pwd you are trying to execute ipfw from? From the looks
of the code (/usr/src/sbin/ipfw.c),

	if (ac > 1 && access(av[ac - 1], R_OK) == 0) {

Where 'ac' is what we ususally call 'argc' and 'av' is 'argv,' if the
last argument on the command line is a readable file, ipfw thinks it
is supposed to use it as a ipfw config-file.

That is _really_ not an ideal way to figure out how to handle the
command line.
-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000118000301.C63571>