]> git.puffer.fish Git - matthieu/frr.git/commit
lib: simplify str2mac and use struct ethaddr structure
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 9 Feb 2017 07:42:32 +0000 (08:42 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 9 Feb 2017 08:02:41 +0000 (09:02 +0100)
commit3d5fc15be24e026472e259d02564dae1d73d3af5
tree8a8ed43221bbdf5f1e8caacab7d621aae45d7005
parent4e8e1df14390b20c18397fc5643e11cc35942921
lib: simplify str2mac and use struct ethaddr structure

This commit simplified the string to mac conversion, since it uses
sscanf, instead of depicting each incoming character one by one, and
doing self analysis. Also,this commit changes the internal usage of the
mac address representation in mac handling function.

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