summaryrefslogtreecommitdiffstats
path: root/lib/prefix.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2017-02-03 08:28:57 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2017-02-14 13:59:00 +0100
commitd5c8a0cecfe22a5073db66801b492eb2f3aafcae (patch)
tree0e4903c754c942e7ab2f422647f674c1f19baf88 /lib/prefix.c
parentbgpd: replace AFI_ETHER reference with AFI_L2VPN ref (diff)
downloadfrr-d5c8a0cecfe22a5073db66801b492eb2f3aafcae.tar.xz
frr-d5c8a0cecfe22a5073db66801b492eb2f3aafcae.zip
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>
Diffstat (limited to 'lib/prefix.c')
-rw-r--r--lib/prefix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index 73af29ead..054ba814a 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -1051,7 +1051,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;
@@ -1119,7 +1119,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;