ip6: add default gateway to NMIP6Config (bgo #676317)
authorPavel Šimerda <psimerda@redhat.com>
Wed, 23 May 2012 17:07:39 +0000 (19:07 +0200)
committerDan Williams <dcbw@redhat.com>
Thu, 31 May 2012 20:37:49 +0000 (15:37 -0500)
commit8a059b1496448ffaa1178b35887883e1cf87800b
treed83ae10599edb5fd7da6c6e68698f0ed23e0ae98
parent1c0e2a1ec373201b865b6c6651df865c2b5a7062
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.
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