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

10 Commits

Author SHA1 Message Date
Martine Lenders
45144fb4a4
treewide: use new gnrc_pkt API functions instead of utlist.h macros 2020-10-13 13:32:53 +02:00
Jean Pierre Dudey
80435ae838
tests/gnrc_udp/udp.c: fix netif_hdr typo
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-07-10 14:47:10 -05:00
Leandro Lanzieri
e64d327ea8 tests/gnrc_udp: Adapt to change in ipv6_addr_split_iface 2019-11-15 14:35:30 +01:00
Martine Lenders
37eb634ff9 examples,tests: use gnrc_netif_hdr_set_netif() 2019-09-10 12:37:32 +02:00
harisanthosh
f583368842 net/gnrc/udp: Adding Null pointer check in gnrc_netif_hdr_build 2019-08-26 12:46:26 -07:00
Juan Carrano
c0af4237d8 tests/gnrc_udp: fix printf format string (%d->%u).
This was causing the CI build to fail in the static-check stage
(cppcheck).
2019-04-11 11:26:02 +02:00
Juan Carrano
54cbdaaa53 tests/gnrc_udp: Replace atoi() by strtol().
This patch is a reduced version of an earlier one, with the bare minimum
required to be able to run the test and get the release going.

Original description:

atoi() cannot detect errors. Many implementation return zero on error
and that is what was being checked here, making the "udp send" command
unable to parse integer values of zero. On top of this, the behavior on
errors does not seem to be specified in the standard (so it is not even
correct to check for zero even when zero is not an accepted value, like
for a port number).

The result of all this is that sending UDP packets of zero length (as
required by the Release Specs) was not possible.

This patch replaces atoi by strlen, which allows for robust error detection.
Sending zero length packets is possible.
2019-04-10 15:33:46 +02:00
Cenk Gündoğan
6aeb4f6cbd tests/gnrc_udp: remove pktdump from comment 2018-07-24 17:35:20 +02:00
Martine Lenders
08964079e0
examples: tests: adapt udp shell commands for new forwarding engine
The NIB's forwarding engine behaves more correctly than GNRC's old
forwarding engine in that link-local addresses require also an
interface to be provided to be meaningful. As with other commands this
is simplified for the special case that there only is one interface
that that interface is chosen.
2017-11-21 10:40:01 +01:00
Martine Lenders
cabb58bad6
tests: add application for release specs 6 2017-06-27 14:49:20 +02:00