pkgsrc-wip/openbgpd-as4byte/patches/patch-bj

23 lines
824 B
Text
Raw Normal View History

--- ./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);