• D
    Remove all use of inet_pton and inet_ntop · a8ae7d19
    Daniel P. Berrange 提交于
    The  inet_pton and inet_ntop functions are obsolete, replaced
    by getaddrinfo+getnameinfo with the AI_NUMERICHOST flag set.
    These can be accessed via the virSocket APIs.
    
    The bridge.c code had methods for fetching the IP address of
    a bridge which used inet_ntop. Aside from the use of inet_ntop
    these methods are broken, because a NIC can have multiple
    addresses and this only returns one address. Since the methods
    are never used, just remove them.
    
    * src/conf/network_conf.c, src/nwfilter/nwfilter_learnipaddr.c:
      Replace inet_pton and inet_ntop with virSocket APIs
    * src/util/bridge.c, src/util/bridge.h: Remove unused methods
      which called inet_ntop.
    a8ae7d19
bridge.c 18.2 KB