summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc1
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh1
2 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc
index 1add34c..d868438 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc
+++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc
@@ -82,12 +82,13 @@ int card_into_monitormode (pcap_t **orighandle, char *device, int cardtype)
82int card_check_rfmon_datalink (char *device) 82int card_check_rfmon_datalink (char *device)
83{ 83{
84 int datalinktype=0; 84 int datalinktype=0;
85 pcap_t *phandle; 85 pcap_t *phandle;
86 phandle = pcap_open_live(device, 65,0,0,NULL); 86 phandle = pcap_open_live(device, 65,0,0,NULL);
87 datalinktype = pcap_datalink (phandle); 87 datalinktype = pcap_datalink (phandle);
88 pcap_close(phandle);
88 89
89 if (datalinktype != DLT_IEEE802_11) /* Rawmode is IEEE802_11 */ 90 if (datalinktype != DLT_IEEE802_11) /* Rawmode is IEEE802_11 */
90 { 91 {
91 return 0; 92 return 0;
92 } 93 }
93 else 94 else
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
index babb109..4eec122 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
+++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
@@ -11,13 +11,12 @@
11#include <sys/socket.h> 11#include <sys/socket.h>
12#include <netinet/in.h> 12#include <netinet/in.h>
13#include <arpa/inet.h> 13#include <arpa/inet.h>
14#include <sys/ioctl.h> 14#include <sys/ioctl.h>
15#include <linux/if.h> 15#include <linux/if.h>
16 16
17
18extern "C" 17extern "C"
19{ 18{
20#include <net/bpf.h> 19#include <net/bpf.h>
21#include <pcap.h> 20#include <pcap.h>
22} 21}
23 22