From b780681c3c9b42d6e60d369c499eaf4b94088c1d Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Sat, 13 Jun 2015 15:30:45 +0300 Subject: 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 [ dbkm: minor stylistic fixes ] Signed-off-by: Daniel Borkmann --- dev.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dev.h') 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 */ -- cgit v1.2.3-54-g00ecf