Net::NetMask how to find the smallest subnet

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi there,

In the Net::Netmask package there is a findOuterNetblock subroutine
that is reporting the largest subnet that contains the input ip block.

But I am looking for a similar function that is reporting the smallest
subnet rather than the largest one.
I did not found such a function.

Does somebody had a similar need, and how did he solved the problem?

I modified locally the Net::Netmask on my PC by adding such a function
but this is not very clean.


Site Timeline