]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: remove unused str2in6_addr()
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 8 Feb 2017 14:19:09 +0000 (15:19 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 8 Feb 2017 15:33:47 +0000 (16:33 +0100)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/prefix.c
lib/prefix.h

index 82895937816bf7ebb47da3292718aa6892db1618..bc1c681058289b5141f94a7a77562124403eb486 100644 (file)
@@ -722,20 +722,6 @@ apply_mask_ipv6 (struct prefix_ipv6 *p)
     }
 }
 
-void
-str2in6_addr (const char *str, struct in6_addr *addr)
-{
-  int i;
-  unsigned int x;
-
-  /* %x must point to unsinged int */
-  for (i = 0; i < 16; i++)
-    {
-      sscanf (str + (i * 2), "%02x", &x);
-      addr->s6_addr[i] = x & 0xff;
-    }
-}
-
 void
 apply_mask (struct prefix *p)
 {
index 45e6368463b091a499a7ebba34ef60cc5f046c9d..eb69e98f044e0cd0304b18e3507d9c9618da3089 100644 (file)
@@ -281,7 +281,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 void str2in6_addr (const char *, struct in6_addr *);
 extern const char *inet6_ntoa (struct in6_addr);
 
 static inline int ipv6_martian (struct in6_addr *addr)