From a491c8ee3cd0124571ee4ae3fa29084ce42925f3 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 27 Sep 2021 00:23:27 +0200 Subject: 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 --- pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3