summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2021-03-31 08:29:29 -0400
committerMark Stapp <mjs@voltanet.io>2021-03-31 08:32:48 -0400
commitb5058075b36723ce4c991a70b04583a9ec1b5046 (patch)
treef0fe76aff60a8934b63e8508b274cb7d44e6bd25
parent2e5b3f37b0b696e37645ce28f5fd69268b1b1daa (diff)
lib: remove inet6_ntoa api
Remove inet6_ntoa() - used static buffer, not needed. Signed-off-by: Mark Stapp <mjs@voltanet.io>
-rw-r--r--lib/prefix.c9
-rw-r--r--lib/prefix.h2
2 files changed, 0 insertions, 11 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index afc4d3d5c2..6b9a694249 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -1198,15 +1198,6 @@ int netmask_str2prefix_str(const char *net_str, const char *mask_str,
return 1;
}
-/* Utility function for making IPv6 address string. */
-const char *inet6_ntoa(struct in6_addr addr)
-{
- static char buf[INET6_ADDRSTRLEN];
-
- inet_ntop(AF_INET6, &addr, buf, INET6_ADDRSTRLEN);
- return buf;
-}
-
/* converts to internal representation of mac address
* returns 1 on success, 0 otherwise
* format accepted: AA:BB:CC:DD:EE:FF
diff --git a/lib/prefix.h b/lib/prefix.h
index b2f3b0592f..d7ee1b8e4c 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -504,8 +504,6 @@ extern void apply_mask_ipv6(struct prefix_ipv6 *);
extern int ip6_masklen(struct in6_addr);
extern void masklen2ip6(const int, struct in6_addr *);
-extern const char *inet6_ntoa(struct in6_addr);
-
extern int is_zero_mac(const struct ethaddr *mac);
extern bool is_mcast_mac(const struct ethaddr *mac);
extern bool is_bcast_mac(const struct ethaddr *mac);