[pve-devel] [RFC pve-common] Some network helpers

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Oct 16 15:53:48 CEST 2015


With perl's Net::IP being unreasonably petulant it might be useful to
have a wrapper around Net::IP->new that doesn't need the address part
to be zero for a CIDR notation. It's certainly useful for the helper
is_ip_in_cidr().

This patch is part of another series for pve-container to deal with
gateways outside the designated subnet.

Wolfgang Bumiller (1):
  network: IP_from_cidr and is_ip_in_cidr helpers

 src/PVE/Network.pm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

-- 
2.1.4




More information about the pve-devel mailing list