[libvirt] [PATCHv2 05/13] Pass prefix rather than netmask into iptables functions

Eric Blake eblake at redhat.com
Wed Dec 22 23:19:54 UTC 2010


On 12/22/2010 11:58 AM, Laine Stump wrote:
> IPv6 will use prefix exclusively, and IPv4 will also optionally be
> able to use it, and the iptables functions really need a prefix
> anyway, so use the new virNetworkDefPrefix() function to send prefixes
> into iptables functions instead of netmasks.
> 
> Also, in a couple places where a netmask is actually needed, use the
> new private API function for it rather than getting it directly. This
> will allow for cases where no netmask or prefix is specified (it
> returns the default for the current class of network.)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101222/7492ebb0/attachment-0001.sig>


More information about the libvir-list mailing list