From: Paul J R Date: Mon, 10 Feb 2014 07:26:03 +0000 (+1100) Subject: really dumb way to create ip's - fixed X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=13915e9dfa6ce808f908a9661885e589d2a9f95a;p=random_node_code.git really dumb way to create ip's - fixed --- 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;