add IP/TCP/HTTP fuzzing and fixes to panics found

This commit is contained in:
Patricio Whittingslow
2026-02-12 16:25:48 -03:00
parent 1694e71e0c
commit fae4552ddb
6 changed files with 141 additions and 2 deletions
+2
View File
@@ -21,6 +21,8 @@ Userspace networking primitives.
- Can produce **very** small binaries. Ideal for embedded systems.
- Extremely simple networking stack construction. Can be used to teach basics of networking
- Only one networking interface fulfilled by all implementations. See [abstractions](#abstractions).
- Stack can be fuzz tested very fast:
- `go test ./x/xnet/ -run FuzzStackAsyncHTTP -fuzz=.` fuzzes Ethernet/IP/TCP/HTTP stack with 170k HTTP exchanges per second on 12 core machine: `fuzz: elapsed: 4m9s, execs: 42649941 (169428/sec), new interesting: 5 (total: 52)`
## `xcurl` example
You may try lneto out on linux with the [xcurl example](./examples/xcurl/) which gets an HTTP page by doing all the low-level networking part using absolutely no standard library.