summaryrefslogtreecommitdiffstats
path: root/lib/util/util.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-12-16 11:12:03 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-12-18 09:52:42 +0800
commit072847109936bc0e822f8cf67c31eb62183f0db8 (patch)
tree168ebf7666c721c912d2b3a5c004d27480d47fc6 /lib/util/util.h
parentb955fa07fc256b39caedb311f97fed404a63c8d5 (diff)
downloadtalos-petitboot-072847109936bc0e822f8cf67c31eb62183f0db8.tar.gz
talos-petitboot-072847109936bc0e822f8cf67c31eb62183f0db8.zip
lib/util: Move mac_buf from nc code to util library
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/util/util.h')
-rw-r--r--lib/util/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index ba5ea4f..39966d0 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -18,6 +18,8 @@
#ifndef UTIL_H
#define UTIL_H
+#include <stdint.h>
+
#ifndef container_of
#define container_of(_ptr, _type, _member) ({ \
const typeof( ((_type *)0)->_member ) *__mptr = (_ptr); \
@@ -47,5 +49,7 @@
#define build_assert(x) \
do { (void)sizeof(char[(x)?1:-1]); } while (0)
+void mac_str(uint8_t *mac, unsigned int maclen, char *buf, unsigned int buflen);
+
#endif /* UTIL_H */
OpenPOWER on IntegriCloud