summaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-04-29 21:34:06 +0200
committerLubomir Rintel <lkundrak@v3.sk>2016-05-30 16:32:06 +0200
commite88f5a6c23dc1a8bbfee96b226a9faa2f7acc891 (patch)
tree8155b70b8aca17bb6c69c3819275b3823b5eea6d /src/platform
parente5f63f2a509e0cafdf22fc7bc0acb290f9809e31 (diff)
downloadNetworkManager-e88f5a6c23dc1a8bbfee96b226a9faa2f7acc891.tar.gz
platform: remove nm_platform_link_get_ipv6_token()
No need for the extra cache lookup.
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/nm-platform.c31
-rw-r--r--src/platform/nm-platform.h1
2 files changed, 0 insertions, 32 deletions
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c
index 0984fb4f01..f3318b3d68 100644
--- a/src/platform/nm-platform.c
+++ b/src/platform/nm-platform.c
@@ -899,37 +899,6 @@ nm_platform_link_uses_arp (NMPlatform *self, int ifindex)
return !NM_FLAGS_HAS (_link_get_flags (self, ifindex), IFF_NOARP);
}
-/**
- * nm_platform_link_get_ipv6_token:
- * @self: platform instance
- * @ifindex: Interface index
- * @iid: Tokenized interface identifier
- *
- * Returns IPv6 tokenized interface identifier. If the platform or OS doesn't
- * support IPv6 tokenized interface identifiers, or the token is not set
- * this call will fail and return %FALSE.
- *
- * Returns: %TRUE a tokenized identifier was available
- */
-gboolean
-nm_platform_link_get_ipv6_token (NMPlatform *self, int ifindex, NMUtilsIPv6IfaceId *iid)
-{
- const NMPlatformLink *pllink;
-
- _CHECK_SELF (self, klass, FALSE);
-
- g_return_val_if_fail (ifindex >= 0, FALSE);
- g_return_val_if_fail (iid, FALSE);
-
-
- pllink = nm_platform_link_get (self, ifindex);
- if (pllink && pllink->inet6_token.id) {
- *iid = pllink->inet6_token;
- return TRUE;
- }
- return FALSE;
-}
-
const char *
nm_platform_link_get_udi (NMPlatform *self, int ifindex)
{
diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h
index b0641e20b4..f0f2eecfab 100644
--- a/src/platform/nm-platform.h
+++ b/src/platform/nm-platform.h
@@ -730,7 +730,6 @@ gboolean nm_platform_link_is_up (NMPlatform *self, int ifindex);
gboolean nm_platform_link_is_connected (NMPlatform *self, int ifindex);
gboolean nm_platform_link_uses_arp (NMPlatform *self, int ifindex);
guint32 nm_platform_link_get_mtu (NMPlatform *self, int ifindex);
-gboolean nm_platform_link_get_ipv6_token (NMPlatform *self, int ifindex, NMUtilsIPv6IfaceId *iid);
gboolean nm_platform_link_get_user_ipv6ll_enabled (NMPlatform *self, int ifindex);
gconstpointer nm_platform_link_get_address (NMPlatform *self, int ifindex, size_t *length);
int nm_platform_link_get_master (NMPlatform *self, int slave);