summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/parse.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-03-02 15:40:21 +0000
committerpeter <peter@FreeBSD.org>1997-03-02 15:40:21 +0000
commit2d94e888ee6d73e6d599e49598a12d8da9f74f69 (patch)
tree0c47f6260ed69e9661116832151ae20f9162b28c /contrib/ipfilter/parse.c
parentcb8d46a179f2d30ac1cd0a01eb156e1a4c08d717 (diff)
downloadFreeBSD-src-2d94e888ee6d73e6d599e49598a12d8da9f74f69.zip
FreeBSD-src-2d94e888ee6d73e6d599e49598a12d8da9f74f69.tar.gz
reimport ipfilter v3.1.8 to get it onto the vendor branch again.
Diffstat (limited to 'contrib/ipfilter/parse.c')
-rw-r--r--contrib/ipfilter/parse.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/contrib/ipfilter/parse.c b/contrib/ipfilter/parse.c
index 1c463e8..0236053 100644
--- a/contrib/ipfilter/parse.c
+++ b/contrib/ipfilter/parse.c
@@ -33,7 +33,7 @@
#if !defined(lint) && defined(LIBC_SCCS)
static char sccsid[] ="@(#)parse.c 1.44 6/5/96 (C) 1993-1996 Darren Reed";
-static char rcsid[] = "$Id: parse.c,v 2.0.1.1 1997/01/09 15:14:44 darrenr Exp $";
+static char rcsid[] = "$Id: parse.c,v 2.0.1.2 1997/02/17 13:59:44 darrenr Exp $";
#endif
extern struct ipopt_names ionames[], secclass[];
@@ -143,9 +143,18 @@ char *line;
}
cpp++;
- if (!strcasecmp("in", *cpp))
+ if (!strcasecmp("in", *cpp)) {
fil.fr_flags |= FR_INQUE;
- else if (!strcasecmp("out", *cpp))
+ if (fil.fr_flags & FR_RETICMP) {
+ (void)fprintf(stderr,
+ "Can only use return-icmp with 'in'\n");
+ return NULL;
+ } else if (fil.fr_flags & FR_RETRST) {
+ (void)fprintf(stderr,
+ "Can only use return-rst with 'in'\n");
+ return NULL;
+ }
+ } else if (!strcasecmp("out", *cpp))
fil.fr_flags |= FR_OUTQUE;
else {
(void)fprintf(stderr,
OpenPOWER on IntegriCloud