]> git.puffer.fish Git - matthieu/frr.git/commit
lib: add string to macaddress and reverse function
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 1 Feb 2017 17:26:34 +0000 (18:26 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 1 Feb 2017 17:42:16 +0000 (18:42 +0100)
commit5761fe822e275cc4d47252dffea36b01206da6f3
tree168fa841d4eacfa0079b70e490c6d29f9d269d6d
parente46538e628ccab900bc58885204fc26ad0c6d8a2
lib: add string to macaddress and reverse function

As mac-address structure is to be used as a prefix field, two new
functions permit handling mac address in order to convert it. either
from string to internal value, or the reverse operation.
Internal representation of a mac address is a 6 byte char value standing
for the 6 byte value the mac address has.

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