Daniel Veillard
784b5030c1
Repair getIPv4Addr after the ntohl conversion
...
* src/util/network.c: getIPv4Addr() got broken when the input
network address value got converted from network to host byte order
2009-11-06 18:07:24 +01:00
Matthew Booth
91b009cde4
Properly convert port numbers to/from network byte order
...
* src/util/network.c: Add htons and ntohs in virSocket(Get|Set)Port
2009-11-05 17:56:08 +01:00
Matthias Bolte
530d4463ba
Don't use private struct member names of in6_addr
...
__in6_u.__u6_addr16 is the private name for this struct member,
s6_addr16 is the public one
* src/util/network.c: dont use the private field, but the public one.
2009-11-02 15:45:05 +01:00
Matthew Booth
c3cc4f8bad
More network utility functions
...
* src/util/network.[ch] Add functions for address->text and get/set
port number
* src/libvirt_private.syms: add new entry points
2009-11-02 15:42:47 +01:00
Matthew Booth
9899e08b8d
Fix typo in network.c function comments
...
* src/util/network.c: fix a few typo
2009-10-30 16:39:57 +01:00
Daniel Veillard
24c8fc5dff
Set of new network related utilities
...
* src/util/network.h src/util/network.c: utilities to parse network
addresses, check netmask and compute ranges
2009-10-30 15:44:53 +01:00