mirror of
https://passt.top/passt
synced 2025-01-03 11:25:24 +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:
parent
da0aeb9080
commit
5f1fcfffe4
3
tap.c
3
tap.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user