Commit Graph

22 Commits

Author SHA1 Message Date
Travis Geiselbrecht
fcb65c9a88 [dev/lib][warnings] fix -Wmissing-declarations warnings in dev/ and lib/ 2021-10-21 23:16:20 -07: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
Travis Geiselbrecht
95bae7b1e7 [lib][minip] add utility routine to generate a random mac address
-Move both stm32f7xx targets to this mechanism
2015-10-15 11:48:08 -07:00
Travis Geiselbrecht
e25f47cde3 [lib][minip] check eth packets for proper target address
-add routine to print eth packet if trace enabled
-fix printf in arp
2015-09-10 14:00:19 -07:00
Nathaniel Quillin
6243633389 [lib][minip] add string utility for parsing ip addresses
Change-Id: If8270c7b48a63e4bddbad7754213e974c29b8744
2015-06-16 18:12:20 -07:00
Nathaniel Quillin
4af4bb5a83 [lib][minip] moved udp to its own file
Change-Id: I2467d850110db14ebbf5c4ac68a835818f664246
2015-05-20 22:15:56 +00:00
Nathaniel Quillin
9b8e7bc33c [lib][minip] change udp_send() to use iovecs
Change-Id: I7befe1bb6c857f63ad810ae72f7fba0db57f4693
2015-05-12 14:44:30 -07: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
Travis Geiselbrecht
73e39eab9a [lib][minip] add reschedule arg to pktbuf_free
Make sure the zynq gem driver doesn't reschedule at interrupt time.

Change-Id: Ieaf56930253bf9e2ebb68001a62f986ea2a50a0c
2015-04-29 15:54:00 -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
Chris Anderson
036eecc07d [minip] Update packet test 2014-11-21 10:37:00 -08: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
Travis Geiselbrecht
93282a3301 [lib][minip] allow packets through when interface bound to 0.0.0.0 2014-08-02 15:49:17 -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