Tons of Solutions Engineering work done today for the rest of the CS team! Headway, Howard Hanna, Engels, Brighton, etc. Also completed Datasnippers auth flow and worked on Anthology's script. Cloned Anthology's courses (900..) and will clone Full Story on Monday.
This commit is contained in:
17
Scripts/node_modules/netmask/example/ipcalc.coffee
generated
vendored
Normal file
17
Scripts/node_modules/netmask/example/ipcalc.coffee
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
Netmask = require('netmask').Netmask
|
||||
|
||||
ip = process.argv[2]
|
||||
netmask = new Netmask(ip)
|
||||
|
||||
out = console.log
|
||||
out "Address: #{ip.split('/', 1)[0]}"
|
||||
out "Netmask: #{netmask.mask} = #{netmask.bitmask}"
|
||||
out "Wildcard: #{netmask.hostmask}"
|
||||
out "=>"
|
||||
out "Network: #{netmask.base}/#{netmask.bitmask}"
|
||||
out "HostMin: #{netmask.first}"
|
||||
out "HostMax: #{netmask.last}"
|
||||
out "Broadcast: #{netmask.broadcast}"
|
||||
out "Hosts/Net: #{netmask.size}"
|
||||
|
||||
out netmask.next()
|
||||
Reference in New Issue
Block a user