summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorHanhui <sylixos@gmail.com>2019-04-11 15:59:43 (GMT)
committer Hanhui <sylixos@gmail.com>2019-04-11 15:59:43 (GMT)
commitad53d47781e6c9bd4a4a3f1f239c9ecc104d2c9f (patch)
tree1ff1c46517875ca993976dc47ab1d9c1684dbac8
parentef5e2afc77d28a74117b13cf6333026785dfdb3b (diff)
downloadlibpcap-ad53d47781e6c9bd4a4a3f1f239c9ecc104d2c9f.zip
libpcap-ad53d47781e6c9bd4a4a3f1f239c9ecc104d2c9f.tar.gz
libpcap-ad53d47781e6c9bd4a4a3f1f239c9ecc104d2c9f.tar.bz2
Fixed update error.
-rw-r--r--libpcap/pcap-linux.c6
-rw-r--r--libpcap/pcap.c8
2 files changed, 0 insertions, 14 deletions
diff --git a/libpcap/pcap-linux.c b/libpcap/pcap-linux.c
index 2fa186a..a0eb027 100644
--- a/libpcap/pcap-linux.c
+++ b/libpcap/pcap-linux.c
@@ -2843,12 +2843,6 @@ _U_
char errbuf[PCAP_ERRBUF_SIZE];
#endif
-#ifdef SYLIXOS
- /* SylixOS WiFi Interface */
- if (strncmp(device, "wl", 2) == 0) {
- return 1;
- }
-#endif
/*
* See if there's a sysfs wireless directory for it.
* If so, it's a wireless interface.
diff --git a/libpcap/pcap.c b/libpcap/pcap.c
index 34bc269..77a709f 100644
--- a/libpcap/pcap.c
+++ b/libpcap/pcap.c
@@ -991,14 +991,6 @@ pcap_set_datalink(pcap_t *p, int dlt)
if (dlt < 0)
goto unsupported;
-#ifdef SYLIXOS
- /* WiFi cap IEEE802_11_RADIO */
- if (p->dlt_count == 0 &&
- dlt == DLT_IEEE802_11_RADIO) {
- p->linktype = dlt;
- return (0);
- }
-#endif
if (p->dlt_count == 0 || p->set_datalink_op == NULL) {
/*
* We couldn't fetch the list of DLTs, or we don't