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


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to