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
parent 4c7304db85
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);