lib: append prefix_ for mac handling functions

This commit is changing the function naming for mac handling functions.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
Philippe Guibert 2017-02-03 08:28:57 +01:00
parent 0aa9c36c07
commit d5c8a0cecf
2 changed files with 4 additions and 4 deletions

View File

@ -1051,7 +1051,7 @@ static uint8_t convertchartohexa(uint8_t * hexa, int *error)
* format accepted: AA:BB:CC:DD:EE:FF * format accepted: AA:BB:CC:DD:EE:FF
* if mac parameter is null, then check only * 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; unsigned int k = 0, i, j;
uint8_t *ptr, *ptr2; uint8_t *ptr, *ptr2;
@ -1119,7 +1119,7 @@ int str2mac(const char *str, char *mac)
return 1; return 1;
} }
char *mac2str(char *mac, char *buf, int size) char *prefix_mac2str(const char *mac, char *buf, int size)
{ {
char *ptr; char *ptr;

View File

@ -327,8 +327,8 @@ extern void masklen2ip6 (const int, struct in6_addr *);
extern const char *inet6_ntoa (struct in6_addr); extern const char *inet6_ntoa (struct in6_addr);
extern int str2mac(const char *str, char *mac); extern int prefix_str2mac(const char *str, char *mac);
extern char *mac2str(char *mac, char *buf, int size); extern char *prefix_mac2str(const char *mac, char *buf, int size);
static inline int ipv6_martian (struct in6_addr *addr) static inline int ipv6_martian (struct in6_addr *addr)
{ {