mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
replace string with define
This commit is contained in:
parent
ad7c62f521
commit
a5c69a2ef0
4 changed files with 17 additions and 16 deletions
|
|
@ -7,6 +7,8 @@
|
|||
#define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
|
||||
#define STR2MAC(a) &(a)[0], &(a)[1], &(a)[2], &(a)[3], &(a)[4], &(a)[5]
|
||||
|
||||
#define MACSTR "%02X:%02X:%02X:%02X:%02X:%02X"
|
||||
|
||||
int hex_to_bin(char ch);
|
||||
|
||||
int hwaddr_aton(const char *txt, uint8_t *addr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue