From f6aa304dd6b862552f794e1c3d0092e6d2ef6769 Mon Sep 17 00:00:00 2001 From: Paul J R Date: Sun, 24 Aug 2014 00:48:04 +1000 Subject: [PATCH] moved bgp test harness to its own repo --- README.md | 12 ------------ bgpfake/bf2.js | 8 ++------ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 370a0b1..34985d2 100644 --- a/README.md +++ b/README.md @@ -35,15 +35,3 @@ The nodejs template currently doesnt work as it stands but in the long term what 5) setup the init nodejs script 6) ... magic! - - - - -BGP Daemon in Node.js -===================== - -simple implementation of the bgp protocol stack - set your ip address and your AS and it'll publish a -number of prefixes (can be changed part way down the code - up to about a million prefixes works without -much drama) - - diff --git a/bgpfake/bf2.js b/bgpfake/bf2.js index 8823a36..b9c0220 100644 --- a/bgpfake/bf2.js +++ b/bgpfake/bf2.js @@ -23,9 +23,9 @@ var currentCon = 0; var sequentialIPs = true; var usePrivateRanges = false; var randomNextHop = false; -var timeBetweenUpdates = 1000; +var timeBetweenUpdates = 20; var routesPerUpdate = 100; -var updatesPerInterval = 20; +var updatesPerInterval = 40; // ---- vars @@ -420,10 +420,6 @@ function getNextIP() { ipc = 1+Math.round(Math.random()*254); - // TODO remove this - ipa = 1; - ipb = 1; - if(!usePrivateRanges) { if(ipb == 168 && ipa == 192) ipb++; if(ipa == 10) ipa++; -- 1.7.0.4