diff options
author | Helge Deller <deller@gmx.de> | 2020-07-27 15:10:18 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2020-07-27 15:16:27 +0200 |
commit | c7a1a609caa6e7a426bacb08885180a7ae12257f (patch) | |
tree | c2f3266fe60f1abc83a0d1cd16d72ab3a14ada93 | |
parent | 2794d6be1c2ee12b2ea5ae9aa63570ec69aeaa04 (diff) | |
download | rbootd-c7a1a609caa6e7a426bacb08885180a7ae12257f.tar.gz |
pcap: Reduce receive timeout from 1000ms to 3ms
We had ~1kb per second transfer rate from host to client when
reading the boot file. This speeds it up a lot.
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | pcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -51,7 +51,7 @@ void PcapOpen() * as a cheap way to detect oversize packets. This is a nasty hack... */ pdesc = pcap_open_live(IntfName, 3 * sizeof(struct rmp_packet), - 1, 1000, errbuf); + 1, 3, errbuf); if (pdesc == NULL) { syslog(LOG_ERR, "pcap: couldn't open filter: %s",errbuf); |