1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/tunslip
smlng d7942cd974 dist/tools: fix tunslip6 strncat num param
Cppcheck was (correctly) warning here that concat to strings might
result in buffer overflow because the terminating `\0` was not considered.
This is fixed here, making the cppcheck suppression also obsolete.
2018-09-25 12:03:58 +02:00
..
.gitignore tools: import tunslip from contiki 2015-05-23 13:19:17 +02:00
Makefile dist/tools/tunslip: fix a bunch of uglies and compile with -std=c99 2017-01-05 14:59:58 +01:00
README.md slip: port to be used with netdev 2017-10-10 23:14:12 +02:00
tapslip6.c dist: tunslip: fix cppcheck warnings 2017-04-14 14:36:16 +02:00
tunslip6.c dist/tools: fix tunslip6 strncat num param 2018-09-25 12:03:58 +02:00
tunslip.c dist: tunslip: fix cppcheck warnings 2017-04-14 14:36:16 +02:00

Creating a SLIP network interface

The module slipdev (Serial line IP) enables the RIOT network stack to communicate IP packets over the serial interface. This collection of tools originally from Contiki [1] enables Linux to interpret this data. Though there is a tool for such operations on Linux (slattach) it is only able to handle IPv4 packages and is unnecessarily complicated.

Installation

Just install them using

make
sudo make install

By default they are installed to the /usr/local/bin directory, you can however change that by setting the PREFIX environment variable

export PREFIX=${HOME}/.local
make
sudo make install

Usage

tapslip6 allows you to open a TAP interface (includes link-layer data) for a serial interace handling IPv6 data, tunslip allows you to open a TUN interface (includes only network-layer data) for a serial interace handling IPv4 data, and tunslip6 allows you to open a TUN interface (includes only network-layer data) for a serial interace handling IPv6 data.

For more information use the help feature of the tools

tapslip -h
tunslip -h
tunslip6 -h

[1] a4206273a5/tools