[libvirt] [PATCH] Fix error report from nl_recvmsg

Eric Blake eblake at redhat.com
Fri Mar 1 14:44:36 UTC 2013


On 03/01/2013 03:18 AM, Daniel P. Berrange wrote:
>>
>> So the conclusion is that I see no extra harm in calling nl_geterror(). ACK.
> 
> Except the API signature is different, so my patch won't work with
> both versions :-(

Sounds like its time for a wrapper function that #ifdefs away the
difference in underlying API calls between libnl1 and libnl3, with the
bulk of our code using our wrapper instead of direct nl_* functions.
And by the time we convert our code to all go through our wrappers, how
much simpler is it to have our wrapper do the direct socket work instead
of catering to two parallel nl_ abstractions?

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

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


More information about the libvir-list mailing list