summaryrefslogtreecommitdiff
path: root/dev.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-04-17 22:04:21 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-04-20 09:31:43 +0200
commitf43bbe9e895a05a71ebfa5fb676f068621bd5014 (patch)
treefe2be9b9c87e5bec73deb60bdfb9c9205a492a27 /dev.h
parent47a7037955bfa7405a0a676f214c26d136b8ca9a (diff)
mac80211: Check existence of generated monX device
Fix then case when netsniff-ng fails if there is already an existing monX device while generating one. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'dev.h')
-rw-r--r--dev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dev.h b/dev.h
index 2d5f056..adb1c43 100644
--- a/dev.h
+++ b/dev.h
@@ -7,6 +7,7 @@
extern size_t device_mtu(const char *ifname);
extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss);
extern int device_ifindex(const char *ifname);
+extern int device_ifindex_get(const char *ifname);
extern int device_type(const char *ifname);
extern short device_get_flags(const char *ifname);
extern void device_set_flags(const char *ifname, const short flags);