2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html;charset=US-ASCII" >
2021-07-11 22:47:19 +01:00
< meta name = "generator" content = "ZealOS V0.07" >
2021-07-03 05:07:57 +01:00
< style type = "text/css" >
body {background-color:#000000;}
.c0F{color:#000000;background-color:#ffffff;}
.cF0{color:#ffffff;background-color:#000000;}
.cF1{color:#3465a4;background-color:#000000;}
.cF2{color:#4e9a06;background-color:#000000;}
.cF3{color:#06989a;background-color:#000000;}
.cF4{color:#a24444;background-color:#000000;}
.cF5{color:#75507b;background-color:#000000;}
.cF6{color:#ce982f;background-color:#000000;}
.cF7{color:#bcc0b9;background-color:#000000;}
.cF8{color:#555753;background-color:#000000;}
.cF9{color:#729fcf;background-color:#000000;}
.cFA{color:#82bc49;background-color:#000000;}
.cFB{color:#34e2e2;background-color:#000000;}
.cFC{color:#ac3535;background-color:#000000;}
.cFD{color:#ad7fa8;background-color:#000000;}
.cFE{color:#fce94f;background-color:#000000;}
.cFF{color:#000000;background-color:#000000;}
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = "font-family:monospace;font-size:12pt" >
2021-07-03 05:07:57 +01:00
< a name = "l1" > < / a > < span class = c0F > Zeal Networking Stack Notes< / span > < span class = cF0 >
< a name = "l2" > < / a >
< a name = "l3" > < / a > Departures from Shrine:
< a name = "l4" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l5" > < / a > ARP Cache is Hashtable. Keys are U32 ip addresses converted to " %X" string.
2021-07-03 05:07:57 +01:00
< a name = "l6" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l7" > < / a > DNS Cache is Hashtable. Keys are U8 *hostname.
2021-07-03 05:07:57 +01:00
< a name = "l8" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l9" > < / a > NetFIFO is NetQueue. If problems arise, maybe set a #define max
< a name = "l10" > < / a > for the length of the Queue.
2021-07-03 05:07:57 +01:00
< a name = "l11" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l12" > < / a > Not defining ntohl and friends. Using Endian functions.
2021-07-03 05:07:57 +01:00
< a name = "l13" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l14" > < / a > Many file global vars have been condensed into global classes.
2021-07-03 05:07:57 +01:00
< a name = "l15" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l16" > < / a > Sockets are a non-standard finite state machine.
< a name = "l17" > < / a > Protocols extend these to create protocol-specific sockets.
2021-07-03 05:07:57 +01:00
< a name = "l18" > < / a >
< a name = "l19" > < / a > Stack progress: (# done, ~ WIP, . N/A)
< a name = "l20" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l21" > < / a > # PCNet-II Driver
2021-07-05 01:57:09 +01:00
< a name = "l22" > < / a > . Other Network Card Drivers? See < / span > < a href = "https://tomawezome.github.io/ZealOS/Home/Roadmap.DD.html#l10" > < span class = cF4 > Roadmap< / span > < / a > < span class = cF0 > .
2021-07-03 05:07:57 +01:00
< a name = "l23" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l24" > < / a > # NetQueue
2021-07-03 05:07:57 +01:00
< a name = "l25" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l26" > < / a > # Ethernet
< a name = "l27" > < / a > - double check.
2021-07-03 05:07:57 +01:00
< a name = "l28" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l29" > < / a > # ARP (Address Resolution Protocol)
< a name = "l30" > < / a > - double check.
2021-07-03 05:07:57 +01:00
< a name = "l31" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l32" > < / a > # Sockets
< a name = "l33" > < / a > - Implemented a Finite State Machine
< a name = "l34" > < / a > through Socket function calls.
< a name = "l35" > < / a > Sockets themselves do nothing,
< a name = "l36" > < / a > all calls simply do/don't alter
< a name = "l37" > < / a > socket state. Protocols will
< a name = "l38" > < / a > need to detect socket states
< a name = "l39" > < / a > and respond appropriately.
< a name = "l40" > < / a > - keep eyes on verifying socket logic sanity.
2021-07-03 05:07:57 +01:00
< a name = "l41" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l42" > < / a > # IPV4 (Internet Protocol Version 4)
< a name = "l43" > < / a > - double check, some TODOs.
2021-07-03 05:07:57 +01:00
< a name = "l44" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l45" > < / a > ~ ICMP (Internet Control Message Protocol)
< a name = "l46" > < / a > - needs ICMPSendRequest implemented.
2021-07-03 05:07:57 +01:00
< a name = "l47" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l48" > < / a > ~ TCP (Transmission Control Protocol)
< a name = "l49" > < / a > - needs much testing, still many bugs/oddities.
< a name = "l50" > < / a > - needs reviewing RFC for better compliance.
2021-07-03 05:07:57 +01:00
< a name = "l51" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l52" > < / a > # UDP (User Datagram Protocol)
< a name = "l53" > < / a > - double check, some TODOs.
2021-07-03 05:07:57 +01:00
< a name = "l54" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l55" > < / a > ~ DNS (Domain Name System)
< a name = "l56" > < / a > - needs clarifying/rewriting in certain methods.
2021-07-03 05:07:57 +01:00
< a name = "l57" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l58" > < / a > ~ DHCP (Dynamic Host Configuration Protocol)
< a name = "l59" > < / a > - needs clarifying/rewriting in certain methods.
2021-07-03 05:07:57 +01:00
< a name = "l60" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l61" > < / a > # NetHandler
< a name = "l62" > < / a > - Uses a switch case with packet ethertype,
< a name = "l63" > < / a > then directly calls the appropriate handler.
2021-07-03 05:07:57 +01:00
< a name = "l64" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l65" > < / a > - IPV4Handler was moved to NetHandler file.
2021-07-03 05:07:57 +01:00
< / span > < / pre > < / body >
< / html >