[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:
rob-the-dude
2020-04-28 18:18:44 -07:00
committed by GitHub
parent c76d325b21
commit 1a43e27d47
File diff suppressed because it is too large Load Diff