1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

26 Commits

Author SHA1 Message Date
Benjamin Valentin
83c2d1bebe tools/ethos: add support for radvd / auto_subnets 2022-04-22 22:22:28 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
benpicco
ecd266f3d3
Merge pull request #13801 from miri64/tools/fix/start_network-interface-init
dist/tools/*/start_network.sh: ensure TUN/TAP interface
2020-04-08 12:51:03 +02:00
benpicco
f6eacda9f8
Merge pull request #13609 from miri64/dhcpv6-pd_ia/feat/initial
dhcpv6-pd_ia: initial import of a DHCPv6 server bootstrapper
2020-04-03 20:40:38 +02:00
Martine S. Lenders
0c51285b9b
dist/tools: provide DHCPv6 server support for network setup scripts 2020-04-03 17:47:39 +02:00
Martine S. Lenders
d726af2cac
dist/tools/*/start_network.sh: ensure TUN/TAP interface
Previously, when the creation of the TUN/TAP interface failed in one of
the `start_network.sh` scripts, the script will fail with a cryptic
error like

> dist/tools/ethos/start_network.sh: 68: [: -eq: unexpected operator

This fix ensures, that the value of this variable checked is always set
such that in the error case, `ethos`/`sliptty` won't start.
2020-04-03 13:39:09 +02:00
Jose Alamos
e451570219 gnrc_netif: remove GNRC_NETIF_NUMOF macro 2020-03-26 11:12:23 +01:00
Thomas Stilwell
41ffaed583 dist/tools/ethos: fix typo for compiling baud rate 230400 2020-03-23 16:01:00 +01:00
Martine S. Lenders
21807d40a5
start_networking.sh: add capability to not start uhcpd
As we now also support DHCPv6 we might want to use the setup-routine of
start_networking.sh but not start the UHCP server.
2020-02-26 12:40:03 +01:00
abc99024df
tools/ethos: fix compilation warning in strncpy 2019-11-26 16:26:35 +01:00
Francisco Molina
d2e90b2370 dist/tools/ethos/ethos.c: remove unusued var 'escaped' 2019-11-21 11:58:07 +01:00
f74e5e754a dist/tools/ethos: add setup_network.sh script 2019-07-15 12:33:11 +02:00
f1ffa10c7e dist/tools/ethos: adapt README.md to USEMODULE+=stdio_ethos 2019-06-24 09:56:30 +02:00
Joakim Nohlgård
369267863c ethos: Avoid EOF loops on detached stdin
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.
2018-01-24 08:54:40 +01:00
Joakim Nohlgård
503976c663 dist/tools/ethos: Build escaped packet in buffer before writing to UART
Significantly improves throughput and latency on FRDM-KW41Z.

Ping with a packet of size 100 yields a 30 ms roundtrip with this
patch, 177 ms without. Size 1000 ping before: 1160 ms, after: 188 ms
2017-08-18 08:12:44 +02:00
Martine Lenders
29842bb5e4 netdev2: rename to netdev and remove gnrc_netdev
With some minor hand-edits I used the following chain of commands:

```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
        xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
                     -e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
                     -e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
        grep "netdev2" | while read dir; do
                new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
                git mv -f "$dir" "$new_dir"
        done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | while read file; do
                new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
                git mv -f "$file" "$new_file"
        done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
        xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
2017-03-15 09:31:20 +01:00
Gaëtan Harter
a52c781339 dist: ethos: add tcp socket support
Add ethos support to use a tcp socket instead of a TTY.
Use 'tcp:host' as serial argument.
Port can be given in place of the baudrate argument.

Default port is 20000 which is used in on IoT-LAB.
2016-07-28 21:28:21 +02:00
abe5c19407 dist/tools: make ethos baudrate configurable 2016-07-14 17:01:02 +02:00
Martine Lenders
55e89610ce tools: ethos: allow start_network.sh script to run from anywhere 2016-04-19 14:34:18 +02:00
Hauke Petersen
78f212c9d8 dist/ethos: fixed compile warnings
- checking return values of each write() call
- chack return value of system() call
2016-04-14 17:31:49 +02:00
eea62a79f2 dist: ethos: fix start_network.sh trap (exit on INT QUIT TERM EXIT) 2016-04-11 17:03:28 +02:00
ee37ea9d40 dist: tools: ethos: add start_network.sh 2016-04-11 17:03:28 +02:00
2ec71c9ca0 dist: ethos: add clean target 2016-04-11 17:03:28 +02:00
7d151f250b dist: ethos: fix usage string 2016-03-31 23:14:23 +02:00
Cenk Gündoğan
c68a38f472 dist/tools/ethos: add .gitignore for ethos 2016-02-17 11:38:53 +01:00
52aec3ad32 dist: add ethos UNIX tool 2016-02-07 19:15:15 +01:00