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 (cherry picked from commit bf402e77) Conflicts: src/util/virsocketaddr.c src/util/virsocketaddr.h * both of these files had new functions that had been added at the same place virSocketAddrIsPrivate was being added, so the context on the branch didn't match.
Showing
想要评论请 注册 或 登录