mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
6b766c3cd3
The build system contains several instances of INCLUDES += -I$(RIOTBASE)/sys/posix/include This is bypassing the module management system, by directly accesing headers without depending on a module. The module is the posix module. That line is also added when one of the posix_* modules is requested. According to the docs, the posix module provides headers only, but in reality there is also inet.c. This patch: - Moves `inet.c` into `posix_inet`, leaving `posix` as a headers-only module. - Rename `posix` as `posix_headers` to make it clear the module only includes headers. - Makes `posix_*` modules depend on `posix_headers`, thus removing the explicit `INCLUDES+=...` in `sys/Makefile.include`. - Ocurrences of `INCLUDES+=...` are replaced by an explicit dependency on `posix_headers`. |
||
---|---|---|
.. | ||
main.c | ||
Makefile | ||
README.md |
Overview
This folder contains a test application for RIOT's sock-based DNS client.
How to test with native
Setup up a tap interface:
$ sudo ip tuntap add dev tap0 mode tap user $(id -u -n)
$ sudo ip a a 2001:db8::1/64 dev tap0
$ sudo ip link set up dev tap0
Start dnsmasq (in another console):
$ sudo dnsmasq -d -2 -z -i tap0 -q --no-resolv \
--dhcp-range=::1,constructor:tap0,ra-only \
--listen-address 2001:db8::1 \
--host-record=example.org,10.0.0.1,2001:db8::1
(NetworkManager is known to start an interfering dnsmasq instance. It needs to be stopped before this test.)
Then run the test application
$ make term
The application will take a little while to auto-configure it's IP address. Then you should see something like
example.org resolves to 2001:db8::1