aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-10-15 02:21:10 +0200
committerPatrick McHardy <kaber@trash.net>2010-10-15 02:21:10 +0200
commitf6e28f8d1980c94cfe6f18ec22231009c633b69b (patch)
treef919db2ac409cf7fcefe2f20f9415eb3523c3065 /pcap-linux.c
parent4d7214cbc5dcc8e9635f99c13367dea37eddda0f (diff)
Import pcap-dect-linux
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index f8b3f10..9cdc0bf 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -191,6 +191,10 @@ static const char rcsid[] _U_ =
#include "pcap-can-linux.h"
#endif
+#ifdef PCAP_SUPPORT_DECT
+#include "pcap-dect-linux.h"
+#endif
+
/*
* If PF_PACKET is defined, we can use {SOCK_RAW,SOCK_DGRAM}/PF_PACKET
* sockets rather than SOCK_PACKET sockets.
@@ -410,6 +414,12 @@ pcap_create(const char *device, char *ebuf)
}
#endif
+#ifdef PCAP_SUPPORT_DECT
+ if (strstr(device, "dect")) {
+ return dect_create(device, ebuf);
+ }
+#endif
+
handle = pcap_create_common(device, ebuf);
if (handle == NULL)
return NULL;
@@ -2164,6 +2174,10 @@ pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf)
return (-1);
#endif
+#ifdef PCAP_SUPPORT_DECT
+ if (dect_platform_finddevs(alldevsp, errbuf) < 0)
+ return (-1);
+#endif
return (0);
}