summaryrefslogtreecommitdiff
path: root/src/platform/nm-platform.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-04-29 21:34:06 +0200
committerThomas Haller <thaller@redhat.com>2016-05-05 15:12:47 +0200
commit843baa543cc842daf198b054ee6e0658e4401a4b (patch)
treec2eb01e1f264b90128929e03e0b7a99d5b575522 /src/platform/nm-platform.c
parentba5617cdb950cf024053a80d14b7579421cdb7db (diff)
downloadNetworkManager-th/platform-inet6-token.tar.gz
platform: remove nm_platform_link_get_ipv6_token()th/platform-inet6-token
No need for the extra cache lookup.
Diffstat (limited to 'src/platform/nm-platform.c')
-rw-r--r--src/platform/nm-platform.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c
index a570f9247d..bf1c45b273 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)
{