[openstack-dev] Validation of IP

iKhan ik.ibadkhan at gmail.com
Tue Jan 21 02:55:05 UTC 2014


Hi,

I am planning to validate an IP which is accepted part of input from user
in cinder, I need to verify if IP address is valid and it is up in the
network. The dirty way or only way that I know as of now is to create a
socket object and perform inet_aton()and gethostbyaddr()

Jut worried if these operations are safe to perform.

-- 
Thanks,
Ibad Khan
9686594607
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140121/d6e64b65/attachment.html>


More information about the OpenStack-dev mailing list