This commit is changing the function naming for mac handling functions.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* 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;
return 1;
}
-char *mac2str(char *mac, char *buf, int size)
+char *prefix_mac2str(const char *mac, char *buf, int size)
{
char *ptr;
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)
{