diff options
author | Pavel Šimerda <psimerda@redhat.com> | 2012-05-23 19:07:39 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-05-31 15:37:49 -0500 |
commit | 8a059b1496448ffaa1178b35887883e1cf87800b (patch) | |
tree | d83ae10599edb5fd7da6c6e68698f0ed23e0ae98 /src/nm-ip6-config.h | |
parent | 1c0e2a1ec373201b865b6c6651df865c2b5a7062 (diff) | |
download | NetworkManager-8a059b1496448ffaa1178b35887883e1cf87800b.tar.gz |
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.
Diffstat (limited to 'src/nm-ip6-config.h')
-rw-r--r-- | src/nm-ip6-config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nm-ip6-config.h b/src/nm-ip6-config.h index 1e75a121c8..bc87430cfc 100644 --- a/src/nm-ip6-config.h +++ b/src/nm-ip6-config.h @@ -67,6 +67,9 @@ const struct in6_addr *nm_ip6_config_get_nameserver (NMIP6Config *config, g guint32 nm_ip6_config_get_num_nameservers (NMIP6Config *config); void nm_ip6_config_reset_nameservers (NMIP6Config *config); +void nm_ip6_config_set_defgw (NMIP6Config *config, const struct in6_addr *defgw); +const struct in6_addr *nm_ip6_config_get_defgw (NMIP6Config *config); + void nm_ip6_config_take_route (NMIP6Config *config, NMIP6Route *route); void nm_ip6_config_add_route (NMIP6Config *config, NMIP6Route *route); void nm_ip6_config_replace_route (NMIP6Config *config, guint32 i, NMIP6Route *new_route); |