Re: [PATCHv4 1/4] net-dhcp-leases: Implement the public APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/02/2013 04:46 AM, Daniel P. Berrange wrote:
> Actually, I see that we already expose the IAID concept to the user
> in the XML for networks
> 
>         <ip family="ipv6" address="2001:db8:ca2:2::1" prefix="64" >
>           <dhcp>
>             <host name="paul"   ip="2001:db8:ca2:2:3::1" />
>             <host id="0:1:0:1:18:aa:62:fe:0:16:3e:44:55:66"    ip="2001:db8:ca2:2:3::2" />


> The 'id' value is mapping to the IAID. So it is sensible to expose this
> field in the virNetworkDHCPLease struct, but as a separate field, not
> as a union.

That, and IAID is NOT an 'unsigned long long int', but an arbitrary
string, and you should not be trying to parse it into a single integer.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]