]> xenbits.xensource.com Git - libvirt.git/commit
New virSocketAddr utility functions
authorLaine Stump <laine@laine.org>
Fri, 26 Nov 2010 18:51:44 +0000 (13:51 -0500)
committerLaine Stump <laine@laine.org>
Thu, 23 Dec 2010 20:52:11 +0000 (15:52 -0500)
commit1ab80f32dd38462ef596c2af6b6d128a263ab0e5
tree2ab1ffdad1ca50b1a6b4f9aee7d251510eb9cf5c
parent9a4af303fc9b8a07848899fb0cdf2b84c587e315
New virSocketAddr utility functions

virSocketPrefixToNetmask: Given a 'prefix', which is the number of 1
bits in a netmask, fill in a virSocketAddr object with a netmask as an
IP address (IPv6 or IPv4).

virSocketAddrMask: Mask off the host bits in one virSocketAddr
according to the netmask in another virSocketAddr.

virSocketAddrMaskByPrefix, Mask off the host bits in a virSocketAddr
according to a prefix (number of 1 bits in netmask).

VIR_SOCKET_FAMILY: return the family of a virSocketAddr
src/libvirt_private.syms
src/util/network.c
src/util/network.h