summaryrefslogtreecommitdiff
path: root/dev.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-06-13 15:30:45 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2015-06-13 22:19:23 +0200
commitb780681c3c9b42d6e60d369c499eaf4b94088c1d (patch)
tree3db8c52645d52da1ec39a5afa059a005d3835a82 /dev.h
parentb7ece46f62b1fbece160cc7bd2905a6d0d3970a9 (diff)
dev: Add device string convertions (addr, dev type)
Move device string convertions funcs (device_type2str, device_addr2str) from proto_nlmsg.c to dev.c to use them in other modules. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> [ dbkm: minor stylistic fixes ] Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'dev.h')
-rw-r--r--dev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dev.h b/dev.h
index adb1c43..6aa770d 100644
--- a/dev.h
+++ b/dev.h
@@ -15,5 +15,7 @@ extern int device_up_and_running(const char *ifname);
extern u32 device_bitrate(const char *ifname);
extern short device_enter_promiscuous_mode(const char *ifname);
extern void device_leave_promiscuous_mode(const char *ifname, short oldflags);
-
+extern const char *device_type2str(uint16_t type);
+extern const char *device_addr2str(const char *addr, int alen, int type,
+ char *buf, int blen);
#endif /* DEV_H */