summaryrefslogtreecommitdiffstats
path: root/contrib/pf
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2008-05-09 23:53:01 +0000
committerjulian <julian@FreeBSD.org>2008-05-09 23:53:01 +0000
commitdfe0135978f44e2a23be904bea21f4a748a2671c (patch)
tree7f1476ee8a79204a81c9e23be66a0a9f31fd32cb /contrib/pf
parent783a45362fa0dea62f9e097467969e65e18a553a (diff)
downloadFreeBSD-src-dfe0135978f44e2a23be904bea21f4a748a2671c.zip
FreeBSD-src-dfe0135978f44e2a23be904bea21f4a748a2671c.tar.gz
Max's changes got left out of the MRT commit.
Diffstat (limited to 'contrib/pf')
-rw-r--r--contrib/pf/pfctl/parse.y21
1 files changed, 6 insertions, 15 deletions
diff --git a/contrib/pf/pfctl/parse.y b/contrib/pf/pfctl/parse.y
index 3f8993b..9817e8e 100644
--- a/contrib/pf/pfctl/parse.y
+++ b/contrib/pf/pfctl/parse.y
@@ -1027,16 +1027,13 @@ scrub_opt : NODF {
scrub_opts.randomid = 1;
}
| RTABLE number {
-#ifdef __FreeBSD__
- yyerror("rtable id not supported in FreeBSD, yet");
- YYERROR;
-#else
+#ifndef __FreeBSD__
if ($2 > RT_TABLEID_MAX || $2 < 0) {
yyerror("invalid rtable id");
YYERROR;
}
- scrub_opts.rtableid = $2;
#endif
+ scrub_opts.rtableid = $2;
}
;
@@ -1175,16 +1172,13 @@ antispoof_opt : label {
antispoof_opts.label = $1;
}
| RTABLE number {
-#ifdef __FreeBSD__
- yyerror("rtable id not supported in FreeBSD, yet");
- YYERROR;
-#else
+#ifndef __FreeBSD__
if ($2 > RT_TABLEID_MAX || $2 < 0) {
yyerror("invalid rtable id");
YYERROR;
}
- antispoof_opts.rtableid = $2;
#endif
+ antispoof_opts.rtableid = $2;
}
;
@@ -2153,16 +2147,13 @@ filter_opt : USER uids {
free($2);
}
| RTABLE number {
-#ifdef __FreeBSD__
- yyerror("rtable id not supported in FreeBSD, yet");
- YYERROR;
-#else
+#ifndef __FreeBSD__
if ($2 > RT_TABLEID_MAX || $2 < 0) {
yyerror("invalid rtable id");
YYERROR;
}
- filter_opts.rtableid = $2;
#endif
+ filter_opts.rtableid = $2;
}
;
OpenPOWER on IntegriCloud