]> 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>
Tue, 14 Feb 2017 12:58:59 +0000 (13:58 +0100)
commitc215ecaf837f770f401b949a021c9e0f09421a37
tree1d114240bb0b71ab87e4690864d8b5f2dfa5e063
parent72831436ed8ffa1c826c64a67e63ba3fe85d6d7f
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