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

135 Commits

Author SHA1 Message Date
Akshai M
ea79c71ce8 gnrc/tcp : Move GNRC_TCP_RTO_LOWER_BOUND to 'CONFIG_' 2020-06-02 15:46:44 +05:30
Akshai M
648247592c gnrc/tcp : Move GNRC_TCP_RCV_BUFFERS to 'CONFIG_' 2020-06-02 15:46:44 +05:30
Akshai M
e8b13ab44d gnrc/tcp : Move GNRC_TCP_MSS to 'CONFIG_' 2020-06-02 15:46:44 +05:30
Akshai M
0b3e0de03e gnrc/tcp : Move GNRC_TCP_MSL to 'CONFIG_' 2020-06-02 15:46:44 +05:30
Akshai M
01dd8e4fa8 gnrc/tcp : Move GNRC_TCP_CONNECTION_TIMEOUT_DURATION to 'CONFIG_' 2020-06-02 15:46:44 +05:30
Sören Tempel
ac9c1f4a69 gnrc_tcp: disable checksum checks during fuzzing 2020-04-17 17:11:15 +02:00
Simon Brummer
10872d9a85 gnrc_tcp: Add Endpoints for connection specification 2020-02-26 21:24:06 +01:00
d4f3747705 sys/net: fix typos 2019-11-23 22:39:38 +01:00
Francois Berder
4a31f94cfc many typo fixes
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Leandro Lanzieri
3c89597c83 net/gnrc/tcp: Adapt to change in ipv6_addr_split_iface 2019-11-15 14:02:50 +01:00
Simon Brummer
1eb2969986 gnrc_tcp_recv: immediatly return on closed connection 2019-10-22 20:12:38 +02:00
Martine Lenders
9ab67a6d89
Merge pull request #12379 from brummer-simon/gnrc_tcp-no_reopen_recv_window_on_closed_conn
gnrc_tcp: do not reopen recv window on closed connection
2019-10-06 17:32:49 +02:00
Simon Brummer
4fbc0252e1 gnrc_tcp: do not reopen recv window on closed connection 2019-10-06 12:13:37 +02:00
Martine Lenders
b99ec92e6a
Merge pull request #12368 from miri64/gnrc_tcp/fix/check-option-length
gnrc_tcp: check if option has valid length set
2019-10-05 15:11:38 +02:00
Martine Lenders
66e5f7230f gnrc_tcp: check if option has valid length set 2019-10-03 18:30:40 +02:00
Simon Brummer
07210ee571 gnrc_tcp: fix debug message 2019-10-03 15:54:36 +02:00
Simon Brummer
fdda22c200 gnrc_tcp: allow unknown options 2019-09-24 20:01:40 +02:00
Sören Tempel
e5503d62bf gnrc_tcp: check if option length field is present before accessing it
TCP options have up to three fields (kind, length, value). The
current code only checks for the presence of the first field. Before
accessing the second field (length) the code must ensure that a length
field is even present.
2019-09-16 21:13:51 +02:00
Sören Tempel
463c1212c2 gnrc_tcp: Always ensure that option->length doesn't exceed opt_left 2019-09-16 17:52:25 +02:00
Martine Lenders
1dcf88efb2
Merge pull request #12245 from nmeum/pr/gnrc_tcp_unknown_option
gnrc_tcp: abort on unknown option
2019-09-16 13:01:01 +02:00
Martine Lenders
56e6887a95
Merge pull request #12079 from nmeum/pr/gnrc_tcp_gnrc_pktbuf_add
gnrc_tcp: Fix invocation of gnrc_pktbuf_add
2019-09-16 12:41:57 +02:00
Sören Tempel
9764697a3b gnrc_tcp: abort on unknown option 2019-09-16 12:18:24 +02:00
Simon Brummer
351220e884 gnrc_tcp - Release pakets on failed gnrc_netapi_send() 2019-08-31 11:16:55 +02:00
benpicco
837f99e757
Merge pull request #12084 from nmeum/pr/gnrc_tcp_minlen
gnrc_tcp: add minimum length check to _receive
2019-08-30 17:37:20 +02:00
Sören Tempel
7f3415e91d gnrc_tcp: Fix invocation of gnrc_pktbuf_add
The size parameter should specify the length of the given data.
2019-08-27 10:19:40 +02:00
Sören Tempel
c9358b9217 gnrc_tcp: fix integer underflow in option parser 2019-08-27 10:18:15 +02:00
Sören Tempel
0fff1b35ec gnrc_tcp: add minimum length check to _receive 2019-08-26 16:45:46 +02:00
benpicco
20dec77e39
Merge pull request #11999 from nmeum/pr/gnrc_tcp_mark_update
net/gnrc/tcp: fix invalid read
2019-08-20 15:37:17 +02:00
Sören Tempel
c6df2064af gnrc_tcp: Fix memory leak 2019-08-12 23:14:15 +02:00
Sören Tempel
9e91d21625 net/gnrc/tcp: fix uninitialized memory access
From the gnrc_pktbuf_mark documentation:

	    It's not guaranteed that `result->data` points to the
	    same address as the original `pkt->data.

Thus it should be necessary to update the `hdr` pointer.
2019-08-12 22:04:35 +02:00
e352b54a9b
net/gnrc/tcp: remove duplicate net_gnrc_tcp group definitions 2019-08-05 16:57:37 +02:00
Simon Brummer
5d1ab9b34c gnrc_tcp: Fix packet-flood while probing 2019-03-26 21:05:53 +01:00
Simon Brummer
5dc3f8dc3d gnrc_tcp: syn_rcvd pkt loss fix 2019-02-04 20:57:30 +01:00
Sören Tempel
45989aa60e gnrc_tcp_pkt: fix typo in comment 2019-01-07 16:15:41 +01:00
Martine Lenders
e801829c7a gnrc_udp: send ICMPv6 error messages where appropriate 2018-11-16 17:39:16 +01:00
smlng
59e299635b cppcheck: add/correct reason for cppcheck-suppress
Adding and correcting description/rational on why certain cppcheck
warnings or errors are intentionally suppressed.
2018-09-25 12:03:58 +02:00
05b6af466c sys: add missig <string.h> includes 2018-09-20 23:47:40 +02: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
Simon Brummer
3b89bef366 gnrc_tcp: Add missing includes 2018-07-10 16:00:36 +02:00
Simon Brummer
370fe1e475 gnrc_tcp: Set src addr in outgoing packets by tcp layer. 2018-06-10 13:26:23 +02:00
Simon Brummer
686aabaa0a gnrc_tcp: handle link local IPv6 addresses correctly 2018-05-29 21:28:32 +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
smlng
b283b7784c make: fix various compile errors with Wextra
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
        sys, pm_layered: fix casting nonscalar to the same type
        cpu, stm32_common: fix type-limits, remove always true assert
        cpu, stm32f4: fix pointer arithmetic in periph/i2c
        drivers, at86rf2xx: fix type-limits where condition always true
        saul, gpio: fix if no gpio configured for saul
        cpu, saml21: add frequency check to periph/timer
        driver, cc110x: fix unused param and type-limts errors
        boards, wsn430-common: fix old-style-declaration
        make: fix old style definition
        drivers, sdcard_spi: fix old style typedef
        driver, at30tse: remove unnecessary check
        driver, nrf24: fix type-limit
        driver, pn532: change buffer from char to uint8_t
        tests/driver_sdcard: fix type limits
        boards, feather-m0: add missing field inits
        driver, tcs37727: fix type limits
        pkg, emb6: disable some compiler warnings
        tests/emb6: disable some compiler warings
        pkg, openthread: fix sign compare and unused params
        tests/trickle: fix struct init
        tests/pthread_cooperation: fix type limits
        board, mips-malta: remove feature periph_uart
        shell: fix var size for netif command
        gnrc, netif: fix sign-compare
        gnrc, nib: fix sign-compare
        shell: fix output in netif command
        posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00
smlng
3783f0e98b gnrc tcp: use push flag in send 2017-07-10 16:44:55 +02:00
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
Martine Lenders
1fdad5b184
gnrc_tcp: fix return on closed state 2017-05-17 18:39:38 +02:00
Sebastian Meiling
f0ae5d2dd8 Merge pull request #6969 from brummer-simon/gnrc_tcp-replace_msg_queue
gnrc_tcp: improvement: Replace tcbs msg queue with mbox
2017-05-17 15:13:03 +02:00
Sebastian Meiling
9944642f92 Merge pull request #6997 from brummer-simon/gnrc_tcp-abort_call
gnrc_tcp: improvement: abort() - call
2017-05-17 15:08:12 +02:00
Simon Brummer
42e15ed7c4 gnrc_tcp: improvement: Replace tcbs msg queue with mbox 2017-05-17 13:02:52 +02:00
Simon Brummer
b08b12ec8f gnrc_tcp: improvement: abort() - call 2017-05-17 13:01:28 +02:00
smlng
1be74bc7a5 gnrc, tcp: set param THREAD_CREATE_STACKTEST for mem stats in ps 2017-05-15 13:16:18 +02:00
smlng
cc24aab5a5 gnrc, tcp: fix assert 2017-05-12 09:39:25 +02:00
Martine Lenders
ddda31c509 Merge pull request #6972 from brummer-simon/gnrc_tcp-cleanup-gnrc_tcp_tcb_init
gnrc_tcp: cleanup: shortend gnrc_tcp_tcb_init()
2017-04-26 14:46:52 +02:00
Simon Brummer
2f0a17b80f gnrc_tcp: cleanup: shortend gnrc_tcp_tcb_init() 2017-04-26 13:37:42 +02:00
smlng
ba09fad7ed gnrc_tcp: optimize and cleanup operations on TCB list 2017-04-26 11:59:01 +02:00
Simon Brummer
a9da0dc4f2 gnrc_tcp: cleanup: various minor changes 2017-04-25 20:02:44 +02:00
Simon Brummer
1ae3b51224 gnrc_tcp: cleanup: removed unnecessary includes 2017-02-26 17:31:23 +01:00
Simon Brummer
fd007d5307 gnrc_tcp: cleanup: fixed outdated comments 2017-02-20 21:58:05 +01:00
Simon Brummer
d4c477aa01 gnrc_tcp: cleanup: correct copyright updates and corrected doxygen comments 2017-02-06 18:26:45 +01:00
Simon Brummer
7e7b832219 gnrc_tcp: cleanup: Enforce coding convention 2017-02-04 10:19:59 +01:00
Simon Brummer
4857f16ee8 gnrc_tcp: cleanup: Restrict lines to 100 char boundries 2017-02-02 08:29:29 +01:00
Simon Brummer
a8b8b64036 gnrc_tcp: cleanup: update doxygen headers 2017-02-02 08:29:29 +01:00
Simon Brummer
62c0efb20a gnrc_tcp: cleanup: removed trailing underscores from include guards 2017-02-02 08:29:29 +01:00
Simon Brummer
bc0bf3bc4f gnrc_tcp: cleanup: removed internal fsm structs from public headers 2017-02-02 08:29:29 +01:00
Simon Brummer
67ed2a0ad8 gnrc_tcp: cleanup: internal/common.h added 2017-02-02 08:29:29 +01:00
Simon Brummer
e25fd0dd46 gnrc_tcp: Improved Option Handling 2017-02-01 08:28:59 +01:00
smlng
540fb53ac0 tcp: move header file and adapt includes 2017-01-31 19:14:54 +01:00
Simon Brummer
abd307b89d gnrc_tcp : initial implementation 2017-01-22 09:27:58 +01: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