From 03c5dd9462492e291c6a49b88e1cd9ab34d86b6f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 23 Aug 2022 17:58:42 +0200 Subject: user/netstack: TCP listen and close --- src/user/app/netstack/ipv4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/user/app/netstack/ipv4.c') diff --git a/src/user/app/netstack/ipv4.c b/src/user/app/netstack/ipv4.c index 3243d3c..1336dc1 100644 --- a/src/user/app/netstack/ipv4.c +++ b/src/user/app/netstack/ipv4.c @@ -148,7 +148,8 @@ static void fragmented_free(struct fragmented *inc) { static void ipv4_dispatch(const uint8_t *buf, size_t len, struct ipv4 ip) { switch (ip.proto) { case 0x01: icmp_parse(buf, len, ip); break; - case 0x11: udp_parse(buf, len, ip); break; + case 0x06: tcp_parse(buf, len, ip); break; + case 0x11: udp_parse(buf, len, ip); break; } } -- cgit v1.2.3