mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 17:37:46 +00:00
[posix] refactoring of netif code, mostly to accommodate BSDs (#4664)
This code does the following: - provides an implementation to manage networking notices from a PF_ROUTE socket, instead of (the Linux-specific) PF_NETLINK - breaks out some of the platform-specific mechanisms for configuring a tunnel device (Linux, mac OS, and NetBSD are all different in some ways) - provides handling of I/O to the tun drivers on BSDs (where there's a 4-byte header prepended to identify the IP version) - adds some debugging info and more deliberate error handling (I suspect there are some more OpenThread-friendly ways to do some of the debugging, but I didn't try to figure them out)
This commit is contained in: