]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Handle kernels with no ipv6 support
authorMark McLoughlin <markmc@redhat.com>
Mon, 10 Aug 2009 10:16:37 +0000 (11:16 +0100)
committerMark McLoughlin <markmc@redhat.com>
Mon, 10 Aug 2009 10:19:42 +0000 (11:19 +0100)
commitf5a8f969dd92ec2744e1eec5d35288d5fbcded22
treead6b2322548f7cd4dbb15b1c72a317f05875ce27
parentf9bfa107970edd06a9b76af288345e5490d29883
Handle kernels with no ipv6 support

If the ipv6 kernel module is not loaded, then we get this when starting
a virtual network:

  libvir: Network Config error :
  cannot enable /proc/sys/net/ipv6/conf/virbr0/disable_ipv6:
  No such file or directory

If disable_ipv6 is not present, we should just merrily continue on our
way.

* src/network_driver.c: make networkDisableIPV6() not fail if the kernel
  has no ipv6 support
src/network_driver.c