cd3c9634c8
User-space networking stack API allows user-space daemon to provide TCP/IP stack implementation for NuttX network. Main use for this is to allow use and seamless integration of HW-provided TCP/IP stacks to NuttX. For example, user-space daemon can translate /dev/usrsock API requests to HW TCP/IP API requests while rest of the user-space can access standard socket API, with socket descriptors that can be used with NuttX system calls.
46 lines
2.6 KiB
Plaintext
46 lines
2.6 KiB
Plaintext
README
|
|
======
|
|
|
|
Directory Structure
|
|
===================
|
|
|
|
nuttx/
|
|
|
|
|
`- net/
|
|
|
|
|
+- arp - Address resolution protocol (IPv4)
|
|
+- devif - Stack/device interface layer
|
|
+- icmp - Internet Control Message Protocol (IPv4)
|
|
+- icmpv6 - Internet Control Message Protocol (IPv6)
|
|
+- iob - I/O buffering logic
|
|
+- local - Unix domain (local) sockets
|
|
+- loopback - Local loopback
|
|
+- neighbor - Neighbor Discovery Protocol (IPv6)
|
|
+- netdev - Socket network device interface
|
|
+- pkt - "Raw" packet socket support
|
|
+- socket - BSD socket interface
|
|
+- route - Routing table support
|
|
+- tcp - Transmission Control Protocol
|
|
+- udp - User Datagram Protocol
|
|
+- usrsock - User socket API for user-space networking stack
|
|
`- utils - Miscellaneous utility functions
|
|
|
|
|
|
+-------------------------------------------------------------------++------------------------+
|
|
| Application layer || usrsock daemon |
|
|
+-------------------------------------------------------------------++------------------------+
|
|
+-------------------------------------------------------------------++----------------+ +-----+
|
|
| Socket layer (socket/) || /dev/usrsock | | |
|
|
+-------------------------------------------------------------------++----------------+ | |
|
|
+------------++--------------------------------------------------++-------------------+ | |
|
|
| Network || Protocol stacks (arp, ipv6, icmp, pkt, tcp, udp) || usrsock/ | | |
|
|
| Device |+--------------------------------------------------++-------------------+ | |
|
|
| Interface |+------------------------------------++---------------------------------+ | |
|
|
| (netdev/) || Network Device Interface (devif/) || Utilities | | |
|
|
+------------++------------------------------------++---------------------------------+ | |
|
|
+----------------------------------------------------------------+ | |
|
|
| Network Device Drivers | | HAL |
|
|
+----------------------------------------------------------------+ +-----+
|
|
+----------------------------------------------------------------+ +--------------------------+
|
|
| Networking Hardware | | Hardware TCP/IP Stack |
|
|
+----------------------------------------------------------------+ +--------------------------+ |