• S
    Use libvirt's existing ipv6/ipv4 parser/printer rather than self-written ones · 0e0f6021
    Stefan Berger 提交于
    This patch changes the network filtering code to use libvirt's existing
    IPv4 and IPv6 address parsers/printers rather than my self-written ones.
    
    I am introducing a new function in network.c that counts the number of
    bits in a netmask and ensures that the given address is indeed a netmask,
    return -1 on error or values of 0-32 for IPv4 addresses and 0-128 for
    IPv6 addresses. I then based the function checking for valid netmask
    on invoking this function.
    0e0f6021
network.c 9.7 KB