Anonymous user
Module:IP: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
add getSubnet method
(simplify RawIP:getPrefix) |
(add getSubnet method) |
||
Line 378:
function obj:isInSubnet(subnet)
return subnet:containsIP(self)
end
function obj:getSubnet(bitLength)
return makeSubnet(data.rawIP, bitLength)
end
|