Popular recipes by DJC http://code.activestate.com/recipes/users/4166733/2011-12-20T21:53:30-08:00ActiveState Code RecipesIdentifying network name (CIDR) for IPv4Address (Python) 2011-12-20T21:53:30-08:00DJChttp://code.activestate.com/recipes/users/4166733/http://code.activestate.com/recipes/576479-identifying-network-name-cidr-for-ipv4address/ <p style="color: grey"> Python recipe 576479 by <a href="/recipes/users/4166733/">DJC</a> (<a href="/recipes/tags/network/">network</a>, <a href="/recipes/tags/search/">search</a>, <a href="/recipes/tags/trie/">trie</a>). Revision 3. </p> <p>This program uses a digital trie search (Knuth 1998) to find the network of a given IPv4 address. It is fast, and can find nested subnets. </p>