aboutgitcodebugslistschat
path: root/tap.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-26 00:35:01 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-01-26 07:57:09 +0100
commitf6d9787d30c6a58ea6c4c1612b89f4bd5dd8cb68 (patch)
treeb4e5d00cf65b0b16b57820b154387bd64b079b68 /tap.c
parent6040f16239c96498a7b98c854a3c923b22aad3ea (diff)
downloadpasst-f6d9787d30c6a58ea6c4c1612b89f4bd5dd8cb68.tar
passt-f6d9787d30c6a58ea6c4c1612b89f4bd5dd8cb68.tar.gz
passt-f6d9787d30c6a58ea6c4c1612b89f4bd5dd8cb68.tar.bz2
passt-f6d9787d30c6a58ea6c4c1612b89f4bd5dd8cb68.tar.lz
passt-f6d9787d30c6a58ea6c4c1612b89f4bd5dd8cb68.tar.xz
passt-f6d9787d30c6a58ea6c4c1612b89f4bd5dd8cb68.tar.zst
passt-f6d9787d30c6a58ea6c4c1612b89f4bd5dd8cb68.zip
tap, tcp: Fix two comparisons with different signedness reported by gcc 7
For some reason, those are not reported by recent versions of gcc. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.c')
-rw-r--r--tap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tap.c b/tap.c
index d6bad5a..a3fc249 100644
--- a/tap.c
+++ b/tap.c
@@ -340,7 +340,7 @@ resume:
iph = (struct iphdr *)(eh + 1);
if ((iph->ihl * 4) + sizeof(*eh) > len)
continue;
- if (iph->ihl * 4 < sizeof(*iph))
+ if (iph->ihl * 4 < (int)sizeof(*iph))
continue;
if (iph->saddr && c->addr4_seen != iph->saddr) {