ip6: add default gateway to NMIP6Config (bgo #676317)
authorPavel Šimerda <psimerda@redhat.com>
Wed, 23 May 2012 17:07:39 +0000 (19:07 +0200)
committerPavel Šimerda <psimerda@redhat.com>
Wed, 30 May 2012 17:07:11 +0000 (19:07 +0200)
commitb20623e05fcb675a9c100bc9bc97c9e0d91e2f36
tree31f36f23d96d19745fdcc422d22f6cb76acfe109
parent57c9255f121f7b8614ec1b69900fc1fa9a08bae3
ip6: add default gateway to NMIP6Config (bgo #676317)

Bug #676317 describes the following error:

  NetworkManager[30151]: <error> [1337348764.559121] [nm-system.c:1121]
  nm_system_replace_default_ip6_route(): (eth1): failed to set IPv6 default
  route: -7

The above error is caused by NetworkManager assuming default gateways
belong to addresses but failing to setup default gateways for addresses
learned through DHCPv6.

This commit doesn't fix the fundamental issue but can be viewed as an ugly
workaround that gets IPv6 connection up and running. It doesn't fix
the fundamental flaw of binding gateways to IP addresses. They are
configured separately in IPv6 and NM should use lifetimes and allow
default gateway reconfiguration.

squash
src/ip6-manager/nm-ip6-manager.c
src/nm-device.c
src/nm-ip6-config.c
src/nm-ip6-config.h
src/nm-policy.c