]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: remove inet6_ntoa api
authorMark Stapp <mjs@voltanet.io>
Wed, 31 Mar 2021 12:29:29 +0000 (08:29 -0400)
committerMark Stapp <mjs@voltanet.io>
Wed, 31 Mar 2021 12:32:48 +0000 (08:32 -0400)
Remove inet6_ntoa() - used static buffer, not needed.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
lib/prefix.c
lib/prefix.h

index afc4d3d5c22f5bfaa05b446e0eb952a79b61d19d..6b9a6942493f1911681c8c77bf0b947b43c1065e 100644 (file)
@@ -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
index b2f3b0592f98982857c08145dab0453b9deaca50..d7ee1b8e4c336abb77e143d7bac6faa408436426 100644 (file)
@@ -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);