]> 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>
Tue, 14 Feb 2017 12:59:00 +0000 (13:59 +0100)
commitdb42a173d67868b522b3a3a035372f582152b3c1
treed488fce7f63a28f32cbc1ced2f41eae1d9c554d7
parent7acff3e73536f9f5afc3d7ffbbe1d72c2cbfc38e
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