Max's changes got left out of the MRT commit.

This commit is contained in:
julian 2008-05-09 23:53:01 +00:00
parent 783a45362f
commit dfe0135978

View File

@ -1027,16 +1027,13 @@ scrub_opt : NODF {
scrub_opts.randomid = 1; scrub_opts.randomid = 1;
} }
| RTABLE number { | RTABLE number {
#ifdef __FreeBSD__ #ifndef __FreeBSD__
yyerror("rtable id not supported in FreeBSD, yet");
YYERROR;
#else
if ($2 > RT_TABLEID_MAX || $2 < 0) { if ($2 > RT_TABLEID_MAX || $2 < 0) {
yyerror("invalid rtable id"); yyerror("invalid rtable id");
YYERROR; YYERROR;
} }
scrub_opts.rtableid = $2;
#endif #endif
scrub_opts.rtableid = $2;
} }
; ;
@ -1175,16 +1172,13 @@ antispoof_opt : label {
antispoof_opts.label = $1; antispoof_opts.label = $1;
} }
| RTABLE number { | RTABLE number {
#ifdef __FreeBSD__ #ifndef __FreeBSD__
yyerror("rtable id not supported in FreeBSD, yet");
YYERROR;
#else
if ($2 > RT_TABLEID_MAX || $2 < 0) { if ($2 > RT_TABLEID_MAX || $2 < 0) {
yyerror("invalid rtable id"); yyerror("invalid rtable id");
YYERROR; YYERROR;
} }
antispoof_opts.rtableid = $2;
#endif #endif
antispoof_opts.rtableid = $2;
} }
; ;
@ -2153,16 +2147,13 @@ filter_opt : USER uids {
free($2); free($2);
} }
| RTABLE number { | RTABLE number {
#ifdef __FreeBSD__ #ifndef __FreeBSD__
yyerror("rtable id not supported in FreeBSD, yet");
YYERROR;
#else
if ($2 > RT_TABLEID_MAX || $2 < 0) { if ($2 > RT_TABLEID_MAX || $2 < 0) {
yyerror("invalid rtable id"); yyerror("invalid rtable id");
YYERROR; YYERROR;
} }
filter_opts.rtableid = $2;
#endif #endif
filter_opts.rtableid = $2;
} }
; ;