pkgsrc-wip/openbgpd-as4byte/patches/patch-bj
George Michaelson edb12a94da This is a modified import of the FreeBSD port of OpenBGPD.
This pkg includes modifications to implement 4byte (32bit) AS number extensions
to BGP.

the original FreeBSD port descr is appended below.

-george

OpenBGPD is a FREE implementation of the Border Gateway Protocol, Version 4.
It allows ordinary machines to be used as routers exchanging routes with
other systems speaking the BGP protocol.

WWW: http://www.openbgp.org/

- Florent Thoumie
flz@xbsd.org
2007-01-12 04:32:48 +00:00

22 lines
824 B
Text
Executable file

--- ./bgpd/rde_decide.c.dist Wed Jan 10 09:22:24 2007
+++ ./bgpd/rde_decide.c Wed Jan 10 09:19:08 2007
@@ -17,6 +17,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+/* +4-Byte AS: modifications for 4 Byte AS Number Support -
+ Geoff Huston, January 2007 */
+
#include <sys/types.h>
#include <sys/queue.h>
@@ -144,7 +147,8 @@
/* 5. MED decision, only comparable between the same neighboring AS */
if (rde_decisionflags() & BGPD_FLAG_DECISION_MED_ALWAYS ||
- aspath_neighbor(asp1->aspath) == aspath_neighbor(asp2->aspath))
+ /* +4-Byte AS: add AS size parameter (4 bytes) */
+ aspath_neighbor(asp1->aspath,4) == aspath_neighbor(asp2->aspath,4))
/* lowest value wins */
if ((asp2->med - asp1->med) != 0)
return (asp2->med - asp1->med);