Add a more flexible version of hwaddr_aton: hwaddr_aton2()
authorJouni Malinen <j@w1.fi>
Tue, 6 Apr 2010 07:37:13 +0000 (10:37 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 6 Apr 2010 07:37:13 +0000 (10:37 +0300)
commit448a0a19d7e869adc46a5001f85254d6cbbf0aae
tree44e7d2007101e98fac37258c478c7a8f159472ab
parent81a658d754660a0654c7e5d8c7696771842b3819
Add a more flexible version of hwaddr_aton: hwaddr_aton2()

This version of the MAC address parser allows number of different
string formats for the address (e.g., 00:11:22:33:44:55, 0011.2233.4455,
001122334455, 00-11-22-33-44-55). It returns the number of characters
used from the input string in case of success.
src/utils/common.c
src/utils/common.h