]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: append prefix_ for mac handling functions
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 3 Feb 2017 07:28:57 +0000 (08:28 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 3 Feb 2017 08:15:05 +0000 (09:15 +0100)
This commit is changing the function naming for mac handling functions.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/prefix.c
lib/prefix.h

index 407b3e510a3cb5d1a42db83e6a1af5b1725e31a3..b2d3b67586185dd6cfa79e874684d42093b2fed8 100644 (file)
@@ -1047,7 +1047,7 @@ static uint8_t convertchartohexa(uint8_t * hexa, int *error)
  * format accepted: AA:BB:CC:DD:EE:FF
  * if mac parameter is null, then check only
  */
-int str2mac(const char *str, char *mac)
+int prefix_str2mac(const char *str, char *mac)
 {
   unsigned int k = 0, i, j;
   uint8_t *ptr, *ptr2;
@@ -1115,7 +1115,7 @@ int str2mac(const char *str, char *mac)
   return 1;
 }
 
-char *mac2str(char *mac, char *buf, int size)
+char *prefix_mac2str(const char *mac, char *buf, int size)
 {
   char *ptr;
   
index 2a4dd12547441ee57ae4a29e1abeabb8197daa95..2c2b37dabb9940efe10880d74f6a546477eb9419 100644 (file)
@@ -289,8 +289,8 @@ 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);
 
-extern int str2mac(const char *str, char *mac);
-extern char *mac2str(char *mac, char *buf, int size);
+extern int prefix_str2mac(const char *str, char *mac);
+extern char *prefix_mac2str(const char *mac, char *buf, int size);
 
 static inline int ipv6_martian (struct in6_addr *addr)
 {