summaryrefslogtreecommitdiff
path: root/src/user/app/netstack
diff options
context:
space:
mode:
authordzwdz2023-02-23 18:36:11 +0100
committerdzwdz2023-02-23 18:36:11 +0100
commit7f4cdc65a390c5bacab00cc38100d66637394476 (patch)
tree3d280dbd1cf67a0f7a3c73e319d7ba4d20f4b198 /src/user/app/netstack
parent55224307bf9b3e4231daca9ad4c4e3b6d734869b (diff)
fix: misc warnings
Diffstat (limited to 'src/user/app/netstack')
-rw-r--r--src/user/app/netstack/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/app/netstack/tcp.c b/src/user/app/netstack/tcp.c
index daa728f..490ad5b 100644
--- a/src/user/app/netstack/tcp.c
+++ b/src/user/app/netstack/tcp.c
@@ -175,8 +175,8 @@ void tcp_parse(const uint8_t *buf, size_t len, struct ipv4 ip) {
uint32_t seq = nget32(buf + Seq);
uint32_t acknum = nget32(buf + AckNum);
uint16_t flags = nget16(buf + Flags);
- uint16_t winsize = nget16(buf + WinSize);
- uint16_t chksum = nget16(buf + Checksum);
+ // uint16_t winsize = nget16(buf + WinSize);
+ // uint16_t chksum = nget16(buf + Checksum);
uint16_t hdrlen = ((flags & FlagSize) >> 12) * 4;
if (hdrlen > len) return;
uint16_t payloadlen = len - hdrlen;