Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

RESOLUTION: Unexpected behavior with Net::Netmask

by ehdonhon (Curate)
on Aug 06, 2002 at 17:09 UTC ( [id://188082]=note: print w/replies, xml ) Need Help??


in reply to Unexpected behavior with Net::Netmask

Turns out that there was a bug in Net::Netmask (version 1.9002). It only happened in the very specific case when you were constructing a netblock using the beginning and ending IP. Netmask was incorrectly assuming that if the number of IP's between the beginning and ending block was a power of 2 then it must be a valid netblock.

While it is true that all valid netblocks have a size that is a power of 2, it is not true that all netblocks with a size that is a power of 2 are valid.

I sent the author a bug report and a diff that will patch the bug. We'll see how long it takes to get updated.

  • Comment on RESOLUTION: Unexpected behavior with Net::Netmask

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://188082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-18 00:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found