1
0
Fork 0
mirror of https://passt.top/passt synced 2025-08-11 17:53:14 +02:00

tcp, udp, util: Fixes for bitmap handling on big-endian, casts

Bitmap manipulating functions would otherwise refer to inconsistent
sets of bits on big-endian architectures. While at it, fix up a
couple of casts.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-01-25 20:21:18 +01:00
commit caa22aa644
5 changed files with 16 additions and 7 deletions

2
tcp.c
View file

@ -2518,7 +2518,7 @@ eintr:
}
if (n < (seq_from_tap - conn->seq_from_tap)) {
if (n < (int)(seq_from_tap - conn->seq_from_tap)) {
partial_send = 1;
conn->seq_from_tap += n;
tcp_send_to_tap(c, conn, 0, now);