diff options
author | dzwdz | 2022-08-23 17:58:42 +0200 |
---|---|---|
committer | dzwdz | 2022-08-23 17:58:42 +0200 |
commit | 03c5dd9462492e291c6a49b88e1cd9ab34d86b6f (patch) | |
tree | 8c8d8e73c8c07b83f5aede18d83671369d0f7589 /src/user/app/netstack/ipv4.c | |
parent | fcdadf5df39e1d72f9ac79fa384fc6b98be0b1aa (diff) |
user/netstack: TCP listen and close
Diffstat (limited to 'src/user/app/netstack/ipv4.c')
-rw-r--r-- | src/user/app/netstack/ipv4.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |