Bas Stottelaar
28ae0c97cd
sys/*: use DEBUG_EXTRA_STACKSIZE for debug stacks
2020-11-02 21:49:39 +01:00
Bas Stottelaar
1b35d06a51
sys/*: realign ENABLE_DEBUG
2020-10-23 11:27:48 +02:00
Bas Stottelaar
80d9da90df
sys/*: add missing include of assert.h
2020-10-22 11:13:09 +02:00
Marian Buschsieweke
3b6fa61829
sys: Cleanup access to internal variables
...
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:
1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
functions
2020-08-24 20:28:11 +02:00
Martine Lenders
e801829c7a
gnrc_udp: send ICMPv6 error messages where appropriate
2018-11-16 17:39:16 +01:00
smlng
fd718dfc74
gnrc_udp: assert ports not zero
...
UDP port 0 is reserved for system usage, e.g., to tell the OS to
set a random source port. Hence, neither source nor destination
port should be 0 when transmitting. This PR adds proper asserts.
2018-08-06 16:09:22 +02:00
Martine Lenders
23bdc80e22
doc: update IPv6 RFC references
...
RFC 2460 was obsoleted by RFC 8200. This PR changes the references
around, so we don't reference an obsoleted RFC ;-).
Also I'm moving these references from the old-style HTML-like format
to the newer-style Markdown-like format.
2018-04-10 15:40:18 +02:00
Martine Lenders
dc45cd2610
gnrc: use new netreg helper functions everywhere
2016-10-25 18:47:30 +02:00
Peter Kietzmann
cd548cad46
Merge pull request #5751 from miri64/gnrc_udp/fix/consider-netif-hdr
...
gnrc_udp: consider netif header in send dispatch
2016-08-30 23:10:13 +02:00
Martine Lenders
b869102450
gnrc_udp: consider netif header in send dispatch
2016-08-15 19:33:50 +02:00
Martine Lenders
af180ef2f1
gnrc_udp: add missing duplitation step
2016-08-15 17:23:19 +02:00
7718f114cb
all: remove pointer casts for msg.content.ptr
2016-06-02 23:13:42 +02:00
Oleg Hahm
487f6e480f
gnrc udp: simplify gnrc_udp_hdr_build
...
Directly using 16 bit port numbers instead of casting uint8_t pointers.
2016-03-23 15:20:11 +01:00
Martine Lenders
cba05cc028
Merge pull request #4873 from Yonezawa-T2/zero_udp_checksum
...
udp: fixed a corner case for checksum computation.
2016-03-07 09:21:24 +01:00
Yonezawa-T2
b1dd2818fe
udp: discard UDP packets with zero checksum.
...
RFC 2460 Section 8.1
> IPv6 receivers must discard UDP packets containing a zero checksum,
> and should log the error.
2016-03-07 15:46:29 +09:00
9082273746
core: header cleanup
2016-02-28 22:46:28 +01:00
Yonezawa-T2
e92c355aba
udp: fixed a corner case for checksum computation.
...
Fixes #4842 .
RFC 2460 section 8.1 (https://tools.ietf.org/html/rfc2460#section-8.1 )
states:
> if that computation yields a result of zero, it must be changed to hex
> FFFF for placement in the UDP header.
2016-02-22 20:30:31 +09:00
Martine Lenders
379703ae3a
gnrc: use gnrc_pkt_search_type instead of LL_SEARCH_SCALAR
2016-02-11 01:05:02 +01:00
Martine Lenders
21beaa7529
gnrc_udp: fix false assumed packet order
2015-12-22 17:14:33 +01:00
Johann Fischer
c6ab57f468
gnrc_udp.c adapt for nhc udp encoding and decoding
2015-12-08 14:50:25 +01:00
Hauke Petersen
41979b64cd
sys: adapted to renamed THREAD FLAGS
2015-12-07 22:09:47 +01:00
Ken Bannister
1abffc84e1
Update layer 4 files to fix checksum with inet_csum_slice().
2015-12-02 05:53:58 -05:00
Martine Lenders
f81f43ea38
gnrc_udp: fix #3707
2015-08-25 18:12:59 +02:00
Martine Lenders
58ff31bfe9
gnrc: make all gnrc modules sub-modules of gnrc
2015-08-18 23:00:07 +02:00