diff options
author | Mark Stapp <mjs@voltanet.io> | 2021-03-31 14:29:29 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2021-03-31 14:32:48 +0200 |
commit | b5058075b36723ce4c991a70b04583a9ec1b5046 (patch) | |
tree | f0fe76aff60a8934b63e8508b274cb7d44e6bd25 | |
parent | ripngd: use pI6 instead of inet6_ntoa (diff) | |
download | frr-b5058075b36723ce4c991a70b04583a9ec1b5046.tar.xz frr-b5058075b36723ce4c991a70b04583a9ec1b5046.zip |
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.c | 9 | ||||
-rw-r--r-- | lib/prefix.h | 2 |
2 files changed, 0 insertions, 11 deletions
diff --git a/lib/prefix.c b/lib/prefix.c index afc4d3d5c..6b9a69424 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 b2f3b0592..d7ee1b8e4 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); |