X-Git-Url: http://git.pjr.cc/?p=random_node_code.git;a=blobdiff_plain;f=bgpfake%2Fbf.js;h=7f7220c521aebca2e98016a0517a8f875bb0b9dd;hp=aa5adc700930ca6c0a07838a39ee33690e904e3a;hb=13915e9dfa6ce808f908a9661885e589d2a9f95a;hpb=29ef97e386feaf5de007a1a67c56656f6d998b82 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;