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:
parent
4c7304db85
commit
caa22aa644
5 changed files with 16 additions and 7 deletions
2
tcp.c
2
tcp.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue