]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix passing of address family to virSocketParseAddr
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Oct 2010 13:26:30 +0000 (14:26 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Oct 2010 10:16:37 +0000 (11:16 +0100)
commit746c33649539c22758a173a50e1379a782872945
tree5532e15e2765b2a41cd8bdd42855be6b8155301c
parentaf3d4eec0d167208edeca0449eb4e61502552252
Fix passing of address family to virSocketParseAddr

The virSocketParseAddr function was accepting any AF_* constant
and using that to set the ai_flags field in struct addrinfo.
This is invalid, since address families must go in the ai_family
field of the struct.

* src/util/network.c: Fix handling of address family
* src/conf/network_conf.c, src/network/bridge_driver.c: Pass
  AF_UNSPEC instead of relying on it being 0.
src/conf/domain_conf.c
src/conf/network_conf.c
src/network/bridge_driver.c
src/util/network.c