]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: remove unused str2tag() function
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 19 May 2017 13:49:24 +0000 (10:49 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 19 May 2017 13:49:24 +0000 (10:49 -0300)
This function is not used anymore since commit fb1d2a2d9.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_mplsvpn.c
bgpd/bgp_mplsvpn.h

index 60e0a212ed1c87d2475eb176566f39065315d654..73c0389b1179c0b913942e22482bdcf648c87a15 100644 (file)
@@ -381,31 +381,6 @@ out:
   return lret;
 }
 
-int
-str2tag (const char *str, u_char *tag)
-{
-  unsigned long l;
-  char *endptr;
-  u_int32_t t;
-
-  if (*str == '-')
-    return 0;
-  
-  errno = 0;
-  l = strtoul (str, &endptr, 10);
-
-  if (*endptr != '\0' || errno || l > UINT32_MAX)
-    return 0;
-
-  t = (u_int32_t) l;
-  
-  tag[0] = (u_char)(t >> 12);
-  tag[1] = (u_char)(t >> 4);
-  tag[2] = (u_char)(t << 4);
-
-  return 1;
-}
-
 char *
 prefix_rd2str (struct prefix_rd *prd, char *buf, size_t size)
 {
index d5378a9d3737053b2795a139412e9cb656a9bb71..faae041e07ba094026b013c6f11e333d4663f6c3 100644 (file)
@@ -104,7 +104,6 @@ extern void
 decode_rd_vnc_eth (u_char *pnt, struct rd_vnc_eth *rd_vnc_eth);
 #endif
 extern int str2prefix_rd (const char *, struct prefix_rd *);
-extern int str2tag (const char *, u_char *);
 extern char *prefix_rd2str (struct prefix_rd *, char *, size_t);
 
 extern int