summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2020-06-02 01:27:32 -0700
committerMaciej Żenczykowski <maze@google.com>2020-06-02 01:49:08 -0700
commitc9b0e6d1ab7e6ea200d4767689fb30f20fec92b6 (patch)
tree28c9fbc3625e87aed92be3dc4c328c92ca152104
parent649581fdd939538fa5ca155bd109edd270729e4a (diff)
downloadplatform_external_android-clat-c9b0e6d1ab7e6ea200d4767689fb30f20fec92b6.tar.gz
platform_external_android-clat-c9b0e6d1ab7e6ea200d4767689fb30f20fec92b6.tar.bz2
platform_external_android-clat-c9b0e6d1ab7e6ea200d4767689fb30f20fec92b6.zip
cleanup - config_item_ip6()
Test: git grep config_item_ip6 comes up empty Bug: 144730808 Test: atest clatd_test netd_integration_test Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I0338f7ac29fdb0de56bd4a500e2a827cab2c47f7
-rw-r--r--config.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/config.c b/config.c
index bcf77ba..554db0e 100644
--- a/config.c
+++ b/config.c
@@ -62,33 +62,6 @@ struct in_addr *config_item_ip(cnode *root, const char *item_name, const char *d
return ret_val_ptr;
}
-/* function: config_item_ip6
- * locates the config item, parses the ipv6 address, and returns the pointer ret_val_ptr, or NULL on
- * failure
- * root - parsed configuration
- * item_name - name of config item to locate
- * defaultvar - value to use if config item isn't present
- * ret_val_ptr - pointer for return value storage
- */
-struct in6_addr *config_item_ip6(cnode *root, const char *item_name, const char *defaultvar,
- struct in6_addr *ret_val_ptr) {
- const char *tmp;
- int status;
-
- if (!(tmp = config_str(root, item_name, defaultvar))) {
- logmsg(ANDROID_LOG_FATAL, "%s config item needed", item_name);
- return NULL;
- }
-
- status = inet_pton(AF_INET6, tmp, ret_val_ptr);
- if (status <= 0) {
- logmsg(ANDROID_LOG_FATAL, "invalid IPv6 address specified for %s: %s", item_name, tmp);
- return NULL;
- }
-
- return ret_val_ptr;
-}
-
/* function: ipv6_prefix_equal
* compares the prefixes two ipv6 addresses. assumes the prefix lengths are both /64.
* a1 - first address