a752c7ab
elopes
add first test an...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
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
``` {.sh}
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
``` {.sh}
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
``` {.sh}
tapslip -h
tunslip -h
tunslip6 -h
```
[1] https://github.com/contiki-os/contiki/tree/a4206273a5a491949f9e565e343f31908173c998/tools
|