haiku/build/jam/images
Augustin Cavalier b6c24e6b40 network: Overhaul TUN/TAP subsystem.
* Rename the "tun" network device to "tunnel". FreeBSD calls theirs
   "tuntap" but speaks of both TUN and TAP devices as interfaces for
   tunnels. The other BSDs seem to do likewise.

 * Fold the "tun" driver into the "tunnel" network device. The
   network device now publishes entries in devfs when interfaces
   are created, and unpublishes them when interfaces are destroyed.

   This removes the need for the driver and device to communicate
   through a file descriptor, and thus allows the receive queue
   to be totally eliminated, massively simplifying that logic.

 * Use standard net-stack FIFOs instead of TCP BufferQueue, which is
   specialized to TCP's needs in far too many ways. Thanks to the
   previous commit adding support for interrupting semaphore waits,
   we can use the FIFO wait mechanisms, too.

 * Restructure the TAP logic, and generate MAC addresses more like
   Linux does.

 * Actually set type = IFT_TUN, and use the "loopback" frame handler
   instead of the "ethernet" frame handler. This allows significant
   cleanup of the header handling logic.

 * In TUN mode, reject packets that don't look like IP packets.

 * Delete "tunconfig"; it was mostly stubs and is now unnecessary.

TUN mode tested and confirmed as working by kallisti5 with OpenVPN.
TAP mode partially tested, but not yet confirmed as working.

Fixes #18673.

Change-Id: Ibd803139474e8db556a4f567901da15ee4083621
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7143
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2023-11-30 20:44:44 +00:00
..
definitions network: Overhaul TUN/TAP subsystem. 2023-11-30 20:44:44 +00:00
AnybootImage enable EFI boot for 32-bit ISO image 2022-10-06 20:12:05 +00:00
CDBootImage Various PowerPC fixes 2023-10-06 20:38:24 +00:00
FloppyBootImage cdboot: add missing PCI x86 module. 2023-04-28 23:55:39 +00:00
HaikuCD
HaikuImage Break translators out of haiku.hpkg into a separate haiku_datatranslators.hpkg. 2021-09-30 16:38:36 +00:00
MMCImage data: Drop ARM FDT dts from repo 2023-02-23 18:24:21 +00:00
NetBootArchive Fix PXE boot 2022-05-13 08:52:13 +00:00