freebsd-ports/net/openbgpd/files/patch-bgpd_parse.y
Stefan Walter 073943d1f3 - Update to 4.2.
- Provide LINK_STATE_IS_UP macros that is missing in FreeBSD.
- Disable CARP demotion: FreeBSD has no support for it.
- Disable check for the routing table number: FreeBSD has single routing table
  now.
- Disable route labeling: FreeBSD has no support for it.

PR:		121831
Submitted by:	Matthieu Guegan <matthieu@virtua.ch>
Approved by:	maintainer timeout (9 months)
2008-12-17 15:58:32 +00:00

19 lines
407 B
Text

--- bgpd/parse.y 2007-05-31 20:38:58.000000000 +0200
+++ bgpd/parse.y 2008-03-18 13:27:29.000000000 +0100
@@ -523,11 +523,16 @@
free($4);
}
| RTABLE number {
+#ifdef __FreeBSD__
+ yyerror("rtable id not supported in FreeBSD, yet");
+ YYERROR;
+#else
if ($2 > RT_TABLEID_MAX || $2 < 0) {
yyerror("invalid rtable id");
YYERROR;
}
conf->rtableid = $2;
+#endif
}
;