networking refactor - #72
Draft
CodeAnarchist wants to merge 46 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
main changes:
moved packet handling to netpkt across device-L4 and cleaned packet ownership
refactored socket layer, moved it to c
added raw, packet and control sockets
sock additional socket options and filtering
reworked tcp around separate core/rx/tx/timer paths
improved tcp retransmission and recovery, SACK/DSACK, out-of-order handling, flow control, sequence wrapping, nagle, keepalive, passive connections and connection teardown
improved udp buffering and multicast behavior
added tcp limits
made ARP and NDP non-blocking
added net control support for interfaces, addresses, routes etc.
improved ip v4/v6 routing and fragmentation/reassembly handling
added ipv4 dad
improved dns
expanded http client/server support with chunked bodies, keep-alive, framing and policy checks, redirects, range responses
moved ping and tracert to raw sockets
added curl
added raw and packet socket filters
improved virtio networking with RX/TX batching and cleaner packet paths
improved multicast handling and propagation of interface membership
various fixes
it should all be well tested. the only parts im still somewhat unsure about are some edge cases around udp multicast and http chunked bodies