Net::NetMask how to find the smallest subnet

Net::NetMask how to find the smallest subnet

am 22.06.2005 12:07:29 von michel_n

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.

---
Michel