Get the arguments to show_usage right (like the MFC'ed code in -stable).

Submitted by:	bde
This commit is contained in:
Alexander Langer 1998-03-13 02:31:21 +00:00
parent 70a91e4c40
commit 585054bfa6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34538

View File

@ -16,7 +16,7 @@
*
* NEW command line interface for IP firewall facility
*
* $Id: ipfw.c,v 1.53 1998/01/08 03:03:50 alex Exp $
* $Id: ipfw.c,v 1.54 1998/02/12 00:57:06 alex Exp $
*
*/
@ -1111,10 +1111,10 @@ add(ac,av)
/* frag may not be used in conjunction with ports or TCP flags */
if (rule.fw_flg & IP_FW_F_FRAG) {
if (rule.fw_tcpf || rule.fw_tcpnf)
show_usage(EX_USAGE, "can't mix 'frag' and tcpflags");
show_usage("can't mix 'frag' and tcpflags");
if (rule.fw_nports)
show_usage(EX_USAGE, "can't mix 'frag' and port specifications");
show_usage("can't mix 'frag' and port specifications");
}
if (!do_quiet)