P5-net-subnet

Jul 20, 2023

Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask

This is a simple but fast pure Perl module for determining whether a given IP address is in a given set of IP subnets. It’s iterative, and it doesn’t use any fancy tries, but because it uses simple bitwise operations on strings it’s still very fast.

All documented functions are exported by default.

Subnets have to be given in “address/mask” or “address/length” CIDR format. The Socket and Socket6 modules are used to normalise addresses, which means that any of the address formats supported by inet_aton and inet_pton can be used with NetSubnet.



Checkout these related ports:
  • Zyre - Framework for proximity-based peer-to-peer applications
  • Zsync - File transfer program
  • Zmap - Internet scanner
  • Zillion - Distributed computing project
  • Zerotier - Network virtualization everywhere
  • Zebra-server - Z39.50/SR server software
  • Yptransitd - Replacement for nss_ldap
  • Yggdrasil - Experimental end-to-end encrypted self-arranging IPv6 network
  • Yconalyzer - TCP Traffic Analyzer
  • Yazproxy - Powerful general purpose Z39.50/SRW/SRU proxy
  • Yaz - Z39.50/SR client and API library
  • Yaz++ - C++ toolkit for development of Z39.50v3 clients and servers
  • Yate - Yet Another Telephony Engine
  • Yaph - Yet Another Proxy Hunter (proxy scanner)
  • Yami4 - Messaging library for distributed systems