Re: [libvirt] [PATCH 1/2] util: Add virSocketAddrSetIPv[46]AddrNetOrder and use it

2016-03-21 Thread Peter Krempa
On Fri, Mar 18, 2016 at 17:42:28 +0100, Martin Kletzander wrote: > This allows setting the address if you already have the address in > network byte order. Some places were having the address in network > order and calling ntohl() just so the original function can call htonl() > again. Let's call

[libvirt] [PATCH 1/2] util: Add virSocketAddrSetIPv[46]AddrNetOrder and use it

2016-03-19 Thread Martin Kletzander
This allows setting the address if you already have the address in network byte order. Some places were having the address in network order and calling ntohl() just so the original function can call htonl() again. Let's call the new one to make clear what's happening. Signed-off-by: Martin Kletz