]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virsocket: Introduce virSocketAddrIsWildcard
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 9 Oct 2013 13:10:02 +0000 (15:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 11 Oct 2013 09:05:06 +0000 (11:05 +0200)
commit1f9546e365e8beab1a4b681cc34105e0ac74be70
treee0d35444c80059f9844d83f2b2b71c7320ee1dc5
parent72aafe9c812e17547df185abebb3fe4e56d0d982
virsocket: Introduce virSocketAddrIsWildcard

This function takes exactly one argument: an address to check.
It returns true, if the address is an IPv4 or IPv6 address in numeric
format, false otherwise (e.g. for "examplehost").

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/util/virsocketaddr.c
src/util/virsocketaddr.h
tests/sockettest.c