Skip to content

Commit 2fbcdf7

Browse files
committed
net: Fix bug
1 parent 7e14cb5 commit 2fbcdf7

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎src/oboskrnl/net/tcp.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,7 @@ PacketProcessSignature(TCP, ip_header*)
297297
resp.seq = be32_to_host(hdr->ack);
298298
else
299299
{
300-
// TODO: Is this check valid?
301-
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
302300
uint8_t header_length = (hdr->data_offset >> 4) * 4;
303-
#else
304-
uint8_t header_length = (hdr->data_offset & 0xf) * 4;
305-
#endif
306301
uint32_t segment_length = be16_to_host(ip_hdr->packet_length)-IPv4_GET_HEADER_LENGTH(ip_hdr) - header_length;
307302
resp.seq = 0;
308303
resp.ack = be32_to_host(hdr->seq)+segment_length+1;

0 commit comments

Comments
 (0)