From 13915e9dfa6ce808f908a9661885e589d2a9f95a Mon Sep 17 00:00:00 2001 From: Paul J R Date: Mon, 10 Feb 2014 18:26:03 +1100 Subject: [PATCH] really dumb way to create ip's - fixed --- bgpfake/bf.js | 20 -------------------- 1 files changed, 0 insertions(+), 20 deletions(-) diff --git a/bgpfake/bf.js b/bgpfake/bf.js index aa5adc7..7f7220c 100644 --- a/bgpfake/bf.js +++ b/bgpfake/bf.js @@ -22,26 +22,6 @@ function createentry(i) { b = (i>>8)&255; a = (i>>16)&255; - /* - // BAH! - // c is easy... - var c = (i%255)+1; - //console.log("i is now: "+i); - - // if we're above 256.... - if(i>253) { - i = i >> 8; - //console.log("i is now: "+i); - b = i%255; - } - - // if we're still above 256.... - if(i>253) { - i = i >> 8; - //console.log("i is now: "+i); - a+=(i%255)+1; - } - */ //console.log("created "+a+"."+b+"."+c+" from "+i); return a+"."+b+"."+c; -- 1.7.0.4