aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/parse.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-03-02 15:40:21 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-03-02 15:40:21 +0000
commitb182e52bf6b074c57140cca8cf3a1c812cb195b1 (patch)
tree0c47f6260ed69e9661116832151ae20f9162b28c /contrib/ipfilter/parse.c
parentb4ebec5bf8828aa1cc3f5a1a50faf812b5b6ba48 (diff)
downloadsrc-b182e52bf6b074c57140cca8cf3a1c812cb195b1.tar.gz
src-b182e52bf6b074c57140cca8cf3a1c812cb195b1.zip
reimport ipfilter v3.1.8 to get it onto the vendor branch again.vendor/ipfilter/3.1.8
Notes
Notes: svn path=/vendor/ipfilter/dist/; revision=23279 svn path=/vendor/ipfilter/3.1.8/; revision=23281; tag=vendor/ipfilter/3.1.8
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 1c463e86eb37..023605399d73 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,