mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
369267863c
Add a specific case of EOF on stdin to avoid situations where the message `error reading from stdio. res=0` is repeated forever if stdin is not a terminal. When ethos is started as a background process with stdin redirected to /dev/null, e.g. `ethos ... < /dev/null &`, then reading stdin will always result in a 0 length read (EOF). If stdin is a tty we close the program on EOF (CTRL+D in the terminal), otherwise, we stop reading from stdin after EOF was reached, but continue tunneling traffic as usual. |
||
---|---|---|
.. | ||
.gitignore | ||
ethos.c | ||
LICENSE | ||
Makefile | ||
README.md | ||
start_network.sh |
Requirements
- currently, the host side only compiles on Linux
Usage
To use, add
#
GNRC_NETIF_NUMOF := 2
USEMODULE += ethos gnrc_netdev
CFLAGS += '-DETHOS_UART=UART_DEV(0)' -DETHOS_BAUDRATE=115200 -DUSE_ETHOS_FOR_STDIO
to app Makefile, "make clean all flash", then run this tool so follows: # sudo ./ethos