]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: new virSocketAddrIsPrivate function
authorLaine Stump <laine@laine.org>
Thu, 22 Nov 2012 02:17:30 +0000 (21:17 -0500)
committerLaine Stump <laine@laine.org>
Thu, 29 Nov 2012 20:02:39 +0000 (15:02 -0500)
commitbf402e77b6d53a4e569b3aa76aef9c7d589c0cf2
tree5d230fa1d78eb632f37248cc67e1b6e20cf899cd
parent719c2c7665e5826a8cf05531080fe20354b39de1
util: new virSocketAddrIsPrivate function

This new function returns true if the given address is in the range of
any "private" or "local" networks as defined in RFC1918 (IPv4) or
RFC3484/RFC4193 (IPv6), otherwise they return false.

These ranges are:

   192.168.0.0/16
   172.16.0.0/16
   10.0.0.0/24
   FC00::/7
   FEC0::/10
src/libvirt_private.syms
src/util/virsocketaddr.c
src/util/virsocketaddr.h