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
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu