Device Emulation (contd.): Reduced pcap timeout to improve ping response times
This commit is contained in:
parent
3afcb72b8d
commit
46a09a82e4
@ -993,10 +993,10 @@ _retry:
|
|||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
// NOCAPTURE_LOCAL needs windows only pcap_open()
|
// NOCAPTURE_LOCAL needs windows only pcap_open()
|
||||||
handle_ = pcap_open(qPrintable(device_), 65535,
|
handle_ = pcap_open(qPrintable(device_), 65535,
|
||||||
flags, 1000 /* ms */, NULL, errbuf);
|
flags, 100 /* ms */, NULL, errbuf);
|
||||||
#else
|
#else
|
||||||
handle_ = pcap_open_live(qPrintable(device_), 65535,
|
handle_ = pcap_open_live(qPrintable(device_), 65535,
|
||||||
flags, 1000 /* ms */, errbuf);
|
flags, 100 /* ms */, errbuf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (handle_ == NULL)
|
if (handle_ == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user