AsteroidOS / asteroid-tap2ble

Root daemon opening a tap interface and streaming its content over a simple RX/TX BLE service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asteroid-tap2ble

This daemon creates a TAP interface and exposes a BLE service with a RX and a TX characteristic. These map to read/write operations on that TAP interface.

The protocol takes into account fragmentation due to the BLE MTU so each BLE message is prepended with a one-byte header that contains a sequence number (to drop missed messages) and a bit to specify the end of a message.

This effectively exposes IP connectivity from the watch to companion apps where this TAP traffic can be injected as RAW sockets or fed to daemons like passt.

About

Root daemon opening a tap interface and streaming its content over a simple RX/TX BLE service

License:GNU General Public License v3.0


Languages

Language:C++ 98.0%Language:CMake 2.0%