Refactored net#20
Merged
differrari merged 20 commits intodifferrari:mainfrom Aug 6, 2025
Merged
Conversation
…actedOS into refactored_net
1eed563 to
99932e2
Compare
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.
complete refactor of the networking components, both shared/net and kernel/networking:
isolated protocol layers and divided them by folder
added ARP table, static ARP entries, and an ARP service
added socket classes for TCP, UDP, and HTTP
added ICMP handling
implemented ephemeral port management and update port manager
port based segment multiplexing/demultiplexing separated for TCP and UDP
added routing table for ipv4
updated all protocols, particularly TCP, for improved standards compliance
updated DHCP to run as a service, supporting all states and persisting all relevant informations
refactored dispatcher into a service that communicates only with drivers and ethernet, handling packets via queues
added a couple of methods to string.h and updated scheduler.c to fix a bug in sleep()
an HTTP server was added on port 80, which starts after executing DHCP and normal network tests