diff --git a/riot-os-posix-lwip/Makefile b/riot-os-posix-lwip/Makefile index 274a5532..c21105b4 100644 --- a/riot-os-posix-lwip/Makefile +++ b/riot-os-posix-lwip/Makefile @@ -1,7 +1,7 @@ APPLICATION = posix-tls # This has to be the absolute path to the RIOT base directory: -RIOTBASE ?= $(CURDIR)/../RIOT +RIOTBASE ?= $(CURDIR)/../../RIOT # If no BOARD is found in the environment, use this default: BOARD ?= native diff --git a/riot-os-posix-lwip/README.md b/riot-os-posix-lwip/README.md index d04b72d6..718baa23 100644 --- a/riot-os-posix-lwip/README.md +++ b/riot-os-posix-lwip/README.md @@ -24,28 +24,30 @@ This example is configured to use wolfSSL on RIOT-OS over POSIX sockets (LWIP). ### Prerequisite +Ensure that the following are installed in your system: +- `gcc-multilib` +- `bridge-utils` + Clone RIOT-OS in a directory on your filesystem. ### Run the server ```bash $ make all RIOTBASE=/path/to/riot-os; PORT=tap1 make term -> ip -``` -*copy the server address* - -```bash > tlss ``` ### Run the client -The default IP address assigned to all nodes is 192.168.7.2. Modify the default address in main.c and re-compile the client application after starting the server. +The default IP address assigned to all nodes is 192.168.7.2. +In order to run two nodes, you must **modify the default address in main.c** and re-compile the client application after starting the server. ```bash $ PORT=tap0 make term -> tlsc +> tlsc ``` +**Note:** You must be root to run `make term`, or else your user must have permissions to access `/dev/net/tun`. + ### Testing against host endpoints Riot-to-host can be tested against wolfSSL client/server. The default IP address assigned to the