1
0
mirror of https://passt.top/passt synced 2024-06-30 15:02:40 +00:00

tap: Fix format specifier in tap4_is_fragment() warning

Spotted by Coverity, relatively harmless.

Fixes: e01759e2fa ("tap: Explicitly drop IPv4 fragments, and give a warning")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Stefano Brivio 2023-08-16 08:20:17 +02:00
parent da0aeb9080
commit 5f1fcfffe4

3
tap.c
View File

@ -561,7 +561,8 @@ static bool tap4_is_fragment(const struct iphdr *iph,
num_dropped++;
if (now->tv_sec - last_message > FRAGMENT_MSG_RATE) {
warn("Can't process IPv4 fragments (%lu dropped)", num_dropped);
warn("Can't process IPv4 fragments (%u dropped)",
num_dropped);
last_message = now->tv_sec;
num_dropped = 0;
}