str: Add str2mac helper function
commit5ad97d9ef3f77a246a588f4256d92f831e542f5d
authorVadim Kochan <vadim4j@gmail.com>
Tue, 26 Jan 2016 20:25:03 +0000 (26 22:25 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Thu, 28 Jan 2016 15:15:11 +0000 (28 16:15 +0100)
tree952674cb0dc0918b80b1701b3c5c84d949305e42
parent11a7670eb559580885e096216a494d2c96702645
str: Add str2mac helper function

Add function to convert a string in the format xx:xx:xx:xx:xx:xx to a
MAC address byte array.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
[tk: Add len parameter and error out on too short buffers]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
str.c
str.h