[riot-devel] Network Stack Question

Martine Lenders authmillenon at gmail.com
Sun Oct 25 16:57:23 CET 2015

Hi Haoyang,

2015-10-24 21:17 GMT+02:00 Haoyang Yu <haoyang.yu at rutgers.edu>:

>    1. where can I find the txtsnd source codes?
> `txtsnd` is a default shell command for the `gnrc_netif` module pulled in
by the `shell_commands` module. As such you can find it in
(When I'm not sure were something is located in RIOT, I use `git grep` ;-))

>    1. Does packet txtsnd sent is through RF based on GNRC protocol, not
>    the serial right?
> Depends, normally (for physical boards) it sends over RF. On native there
is no RF, so we use TAP [1] [2] to virtualize an Ethernet connection. Since
native doesn't have a serial line either (since it is just a process in the
host OS, utilizing normal stdin/stdout) we decided to "misuse" the PORT
environment variable for native to point to the TAP instead to the serial
device (so that might be where your confusion stems from). For physical
boards you can however also send packets via serial line, if you wish to
(for a border router e.g.), using SLIP [3]. See my last mail for how to
activate that in RIOT.

[1] https://www.kernel.org/doc/Documentation/networking/tuntap.txt
[2] https://en.wikipedia.org/wiki/TUN/TAP
[3] https://tools.ietf.org/html/rfc1055
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20151025/44d63d40/attachment.html>

More information about the devel mailing list