Purpose: show how libude, the protocol libraries, udeswitch and the tools fit together, and where to find each part in the source.
Template. This page is an outline. Each TODO heading lists what the section should cover; replace the notes with prose.
TODO: The layers
- libude at the bottom: a switch connection and Ethernet frames.
- libude-ipv4 above it; libude-udp and libude-tcp on IPv4; libude-dhcp on UDP.
- The programs on top, each linking only what it uses.
TODO: The switch core has no socket I/O
ude_switch_input(sw, from, buf, len, now)and theio.sendcallback; time is passed in, which is howtests/test_core.ctests the engine without sockets. Useful for embedders.
TODO: Source map
- The "Design notes" list from the README:
lib/,daemon/,common/,ipv4/,udp/,tcp/,dhcp/,tools/,tests/. - Portability: only
lib/net_compat.[ch]has#ifdef _WIN32in the libraries.
boxwid = 1.3 boxht = 0.4 LU: box "libude" wid 3.2 IP: box "libude-ipv4" wid 3.2 with .s at LU.n + (0, 0.15) TCP: box "libude-tcp" wid 1.5 with .sw at IP.nw + (0, 0.15) UDP: box "libude-udp" wid 1.5 with .se at IP.ne + (0, 0.15) DH: box "libude-dhcp" wid 1.5 with .s at UDP.n + (0, 0.15) P: box "udeswitch, udectl, udedump, udelink, udetap" wid 3.2 with .n at LU.s - (0, 0.5) Q: box "udeping, udenc, udedhcpd" wid 1.6 with .s at DH.n + (-0.8, 0.5) text "TODO: programs link only the layers they use" at P.s + (0, -0.3)→ /pikchrshow