From f6e28f8d1980c94cfe6f18ec22231009c633b69b Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Fri, 15 Oct 2010 02:21:10 +0200 Subject: Import pcap-dect-linux Signed-off-by: Patrick McHardy --- pcap-linux.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pcap-linux.c') 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); } -- cgit v1.2.3