diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-09-27 00:23:27 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-09-27 01:28:02 +0200 |
commit | a491c8ee3cd0124571ee4ae3fa29084ce42925f3 (patch) | |
tree | 657e05ad858444d83ababfa84f47a0f388072d2e | |
parent | 11cc43feec0e2bb7e9636acd8169676d231715e0 (diff) | |
download | passt-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |