aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-09-27 00:23:27 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-27 01:28:02 +0200
commita491c8ee3cd0124571ee4ae3fa29084ce42925f3 (patch)
tree657e05ad858444d83ababfa84f47a0f388072d2e
parent11cc43feec0e2bb7e9636acd8169676d231715e0 (diff)
downloadpasst-a491c8ee3cd0124571ee4ae3fa29084ce42925f3.tar
passt-a491c8ee3cd0124571ee4ae3fa29084ce42925f3.tar.gz
passt-a491c8ee3cd0124571ee4ae3fa29084ce42925f3.tar.bz2
passt-a491c8ee3cd0124571ee4ae3fa29084ce42925f3.tar.lz
passt-a491c8ee3cd0124571ee4ae3fa29084ce42925f3.tar.xz
passt-a491c8ee3cd0124571ee4ae3fa29084ce42925f3.tar.zst
passt-a491c8ee3cd0124571ee4ae3fa29084ce42925f3.zip
pcap: Drop O_DSYNC from pcap file descriptor
passt is stable enough, and dropping O_DSYNC makes reduces the impact of capturing packets on timing, while running tests. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--pcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap.c b/pcap.c
index e9012cd..6b795ff 100644
--- a/pcap.c
+++ b/pcap.c
@@ -185,7 +185,7 @@ void pcap_init(struct ctx *c, int index)
strncpy(c->pcap, name, PATH_MAX);
}
- pcap_fd = open(c->pcap, O_WRONLY | O_CREAT | O_TRUNC | O_DSYNC,
+ pcap_fd = open(c->pcap, O_WRONLY | O_CREAT | O_TRUNC,
S_IRUSR | S_IWUSR);
if (pcap_fd == -1) {
perror("open");