Anonymous user
Module:IP: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
implement subnet walk (I have to do something!)
(use second parameter of tonumber to change base rather than concatenating '0x') |
(implement subnet walk (I have to do something!)) |
||
Line 11:
local V4 = 'IPv4'
local V6 = 'IPv6'
--------------------------------------------------------------------------------
Line 84 ⟶ 79:
return nil
end
function RawIP.newFromIPv6(ipStr)
-- Return a RawIP object if ipStr is a valid IPv6 string. Otherwise,
Line 501 ⟶ 496:
function obj:walk()
local
local current = self:getPrefix()
local highest = self:getHighestIP()
return function ()
return
end
if current < highest then
current = current:getNextIP()
return current
end
end
|