net: updates/cleanup/docs for net, netdev, and netlink

This commit is contained in:
Scott Feldman
2023-06-11 20:34:18 -07:00
committed by Ron Evans
parent 196d1dd58d
commit 3089bf8b1b
23 changed files with 232 additions and 869 deletions
+19
View File
@@ -0,0 +1,19 @@
### Table of Contents
- [Netlinker](#netlinker)
## Netlinker
TinyGo's network device driver model comprises two Go interfaces: Netdever and
Netlinker. This README covers Netlinker.
The Netlinker interface describes an L2 network interface. A netlink is a
concrete implementation of a Netlinker. See [Netdev](../netdev/) for
the L4/L3 network interface.
A netlink can:
- Connect/disconnect device to/from network
- Notify of network events (e.g. link UP/DOWN)
- Send and receive Ethernet packets
- Get/set device's hardware address (MAC address)