From 40d56f96b907f8afb717a5d33fd72bee0f6ad1fb Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 18 Aug 2014 19:03:40 +0200 Subject: osmocore: Add function osmo_macaddr_parse() to parse ETH MAC address --- include/Makefile.am | 1 + include/osmocom/core/macaddr.h | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 include/osmocom/core/macaddr.h (limited to 'include') 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 -- cgit v1.2.3