From: Paul J R Date: Sat, 23 Aug 2014 14:48:04 +0000 (+1000) Subject: moved bgp test harness to its own repo X-Git-Url: http://git.pjr.cc/?p=random_node_code.git;a=commitdiff_plain;h=f6aa304dd6b862552f794e1c3d0092e6d2ef6769 moved bgp test harness to its own repo --- 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++;