diff options
author | Harald Welte <laforge@gnumonks.org> | 2014-08-18 19:03:40 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-08-18 19:03:40 +0200 |
commit | 40d56f96b907f8afb717a5d33fd72bee0f6ad1fb (patch) | |
tree | 81801f9af9ca2f3caf45279d72a6d0c1e155a403 /include | |
parent | cc27fa6479efd446065d691d888d1729bc1be2c8 (diff) |
osmocore: Add function osmo_macaddr_parse() to parse ETH MAC address
Diffstat (limited to 'include')
-rw-r--r-- | include/Makefile.am | 1 | ||||
-rw-r--r-- | include/osmocom/core/macaddr.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 74396de0..3046758a 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -21,6 +21,7 @@ nobase_include_HEADERS = \ osmocom/core/linuxrbtree.h \ osmocom/core/logging.h \ osmocom/core/loggingrb.h \ + osmocom/core/macaddr.h \ osmocom/core/msgb.h \ osmocom/core/panic.h \ osmocom/core/prim.h \ diff --git a/include/osmocom/core/macaddr.h b/include/osmocom/core/macaddr.h new file mode 100644 index 00000000..517977bb --- /dev/null +++ b/include/osmocom/core/macaddr.h @@ -0,0 +1,6 @@ +#ifndef _OSMO_MACADDR_H +#define _OSMO_MACADDR_H + +int osmo_macaddr_parse(uint8_t *out, const char *in); + +#endif |