Commit Graph

18 Commits

Author SHA1 Message Date
Travis Geiselbrecht
9caf62273c [lib][minip] start of TCP connect state machine
A few miscellaneous tweaks outside of that.
2022-03-19 14:43:55 -07:00
Travis Geiselbrecht
35da2d1260 [minip][dhcp] spiff up the state machine to handle more edge cases
-Add TAP option to scripts/qemux86
2021-12-31 17:23:57 -08:00
Travis Geiselbrecht
cba9e47987 [license] replace the longer full MIT license with a shorter one
Used scripts/replacelic. Everything seems to build fine.
2019-07-05 17:22:23 -07:00
Travis Geiselbrecht
d8fa82cb91 [formatting] run everything through codestyle
Almost nothing changes here except moving braces to the same line as the
function declaration. Everything else is largely whitespace changes and
a few dangling files with tab indents.

See scripts/codestyle
2019-06-19 21:02:24 -07:00
Travis Geiselbrecht
1b7a28efb8 [include][lk] fixup lk/ include path move 2019-06-19 19:46:11 -07:00
Travis Geiselbrecht
d569c090ea [vim] remove vim expandtab comments on most of the files 2016-02-14 12:32:07 -08:00
Travis Geiselbrecht
2eb32a4369 [style] mass reformat all the non external code to 4 space indents
Ran everything through scripts/codestyle.space, which uses astyle
to generally follow K&R style.

Biggest non whitespace change is pulling brackets down on function
declarations, which I'm pretty ambivalent about, but astyle insists
on taking a stance
2016-02-14 12:24:01 -08:00
Christopher Anderson
26104fb6d6 [minip] Add arp commands 2015-09-02 14:29:01 -07:00
Nathaniel Quillin
4af4bb5a83 [lib][minip] moved udp to its own file
Change-Id: I2467d850110db14ebbf5c4ac68a835818f664246
2015-05-20 22:15:56 +00:00
Travis Geiselbrecht
613e1c3457 [lib][minip] avoid a double copy in udp_send()
Change-Id: I2b786f0bcbf9b9da73034ee5d98bb5d4402968e1
2015-05-12 12:07:18 -07:00
Travis Geiselbrecht
db1911ecdf [lib][minip] few optimizations
-optimize mac address copies
-tcp skip rx checksum if nic has already done it
-add run time tcp debugging switch
2015-05-06 16:26:07 -07:00
Christopher Anderson
d352ac1d2b [gem][minip][pktbuf] Improvements for TX scatter gather functionality
- GEM now supports asynchronous scatter-gather queuing and properly handling
  pktbuf ownership
- General stack cleanups in Minip
- pktbufs now grab buffers from the user, or from a preallocated pool
2015-04-23 13:30:39 -07:00
Travis Geiselbrecht
c656cf8538 [lib][minip] a bunch of tcp fixes
-add proper ref counting to facilitate sockets hanging around after tcp_close()
-add a bunch of more active and passive close transitions
-general bugfixes
-add 'tcp sockets' debug command to dump all of the active sockets
2014-09-15 17:57:21 -07:00
Travis Geiselbrecht
e7b3f1f913 [lib][minip] implement basic TCP layer
-Add simple TCP layer
-Add simple net timer layer

Limitations:
    Only handles incoming listen sockets
    Does not calculate and honor RTT and aggressively retransmits
    Does not honor remote window size
2014-08-04 17:47:18 -07:00
Chris Anderson
00f12b559d [minip] Update udp chksum code to fit new struct layouts 2014-07-31 00:49:34 -07:00
Travis Geiselbrecht
5f7f3b6703 [lib][minip] fully validate incoming ipv4 packets
Check length, checksum, and the target address being properly addressed.
2014-07-30 20:15:05 -07:00
Travis Geiselbrecht
4f43400dc4 [lib][minip] add license to unlicensed files, vim tags for formatting 2014-07-26 21:12:16 -07:00
Chris Anderson
8801841f84 [lib][minip] mini IP stack 2014-07-24 17:53:37 -07:00