diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-02-16 16:43:08 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-02-16 18:56:20 +0100 |
commit | b62ed9ca0e85a3e779deb1207033f25b0a2a9729 (patch) | |
tree | eac9044aff7030b7a5658f2a5a580c417770fb4f /contrib/selinux/passt.te | |
parent | d9577965a3539521eb26ec8943749cc97ea0c4a0 (diff) | |
download | passt-b62ed9ca0e85a3e779deb1207033f25b0a2a9729.tar passt-b62ed9ca0e85a3e779deb1207033f25b0a2a9729.tar.gz passt-b62ed9ca0e85a3e779deb1207033f25b0a2a9729.tar.bz2 passt-b62ed9ca0e85a3e779deb1207033f25b0a2a9729.tar.lz passt-b62ed9ca0e85a3e779deb1207033f25b0a2a9729.tar.xz passt-b62ed9ca0e85a3e779deb1207033f25b0a2a9729.tar.zst passt-b62ed9ca0e85a3e779deb1207033f25b0a2a9729.zip |
tap: Don't pcap frames that didn't get sent
In tap_send_frames() we send a number of frames to the tap device, then
also write them to the pcap capture file (if configured). However the tap
send can partially fail (short write()s or similar), meaning that some
of the requested frames weren't actually sent, but we still write those
frames to the capture file.
We do give a debug message in this case, but it's misleading to add frames
that we know weren't sent to the capture file. Rework to avoid this.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/selinux/passt.te')
0 files changed, 0 insertions, 0 deletions