1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/native
Ludwig Ortmann b3a8fdc026 Fix uninitialized packet members
also cast packet data explicitly
2013-09-04 21:02:57 +02:00
..
include fix NATIVE_MAX_DATA_LENGTH 2013-08-29 16:16:47 +02:00
net Fix uninitialized packet members 2013-09-04 21:02:57 +02:00
rtc fix unused parameter warning in posix-rtc.c 2013-08-21 15:13:09 +02:00
atomic_cpu.c
hwtimer_cpu.c fix hwtimer_arch_set_absolute return value 2013-08-18 11:25:43 +02:00
irq_cpu.c fix warning for sa.sa_sigaction assignments 2013-08-21 15:13:09 +02:00
lpm_cpu.c Fix some clang warnings in native 2013-08-30 17:03:34 +02:00
Makefile
native_cpu.c
README
startup.c fix unused startup parameter warnings 2013-08-21 15:13:09 +02:00
tapsetup-osx.sh
tapsetup.sh make tapsetup.sh more verbose 2013-08-29 16:16:47 +02:00
tramp.S

If you compile RIOT for the native cpu and include the native_net
module, you need to specify a network interface like this:
./bin/default-native.elf tap0


SETTING UP A TAP NETWORK
========================

There is a shellscript in RIOT/cpu/native called tapsetup.sh which you
can use to create a network of tap interfaces.

Usage:
To create a bridge and two (or count at your option) tap interfaces:
./tapsetup.sh create [count]
To delete the bridge and all tap interfaces:
./tapsetup.sh delete


OSX
===

For tun/tap networking in OSX you will need:
http://tuntaposx.sourceforge.net/

For OSX there is a seperate script called tapsetup-osx.sh.
Run it, (it instructs you to start the RIOT instances).
In contrast to linux you will need to run 'tapsetup-osx.sh delete'
after killing your instances and rerun 'tapsetup-osx.sh create' before
restarting.
Packet delivery under OSX only works with user assistance at the
moment. run 'kill -SIGIO <RIOT process ID>' to deliver a packet to a
specific RIOT instance.