]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Include length with virSocketAddr data
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Oct 2010 13:21:15 +0000 (14:21 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Oct 2010 10:15:36 +0000 (11:15 +0100)
commitaf3d4eec0d167208edeca0449eb4e61502552252
tree42e287e4a3689e0f97edb79f10a8b013e21f2477
parent9e42b40a9526ed9c06586b442a3e803cadc4a7e1
Include length with virSocketAddr data

Some operations on socket addresses need to know the length of
the sockaddr struct for the particular address family. This
info was being discarded when passing around virSocketAddr
instances. Turn it from a union into a struct containing
union+socklen_t fields, so length is always kept around.

* src/util/network.h: Add socklen_t field to virSocketAddr
* src/util/network.c, src/network/bridge_driver.c,
  src/conf/domain_conf.c: Update to take account of new
  struct definition.
src/conf/domain_conf.c
src/network/bridge_driver.c
src/util/network.c
src/util/network.h