José Alamos
1cb780ea26
Merge pull request #10447 from miri64/gnrc_pktbuf/feat/merge
...
gnrc_pktbuf: add gnrc_pktbuf_merge()
2018-11-22 13:58:14 +01:00
Martine Lenders
8644b5c33e
gnrc_pktbuf: fix documentation formatting on gnrc_pktbuf_merge()
2018-11-22 11:35:39 +01:00
Tobias Heider
f03247e752
gnrc_pktbuf: add gnrc_pktbuf_merge()
...
Co-Authored-By: Martine Lenders <m.lenders@fu-berlin.de>
2018-11-22 11:13:33 +01:00
Hauke Petersen
3df1a82ceb
Merge pull request #10437 from miri64/doc/fix/gnrc_netapi-author-tag
...
gnrc_netapi: move author tag into file context
2018-11-21 12:40:32 +01:00
Martine Lenders
8f5f4a370d
gnrc_netapi: declare data
for set function as const
2018-11-20 11:59:38 +01:00
Martine Lenders
633b876c92
gnrc_netapi: move author tag into file context
...
Otherwise, the authorship is associated with `GNRC_NETAPI_MSG_TYPE_RCV`
in the rendered doc.
2018-11-20 11:09:08 +01:00
MichelRottleuthner
e0e02c04c8
Merge pull request #10386 from PeterKietzmann/pr_puf_variables_move
...
sys/puf_sram: CPU specific variable allocation
2018-11-20 09:21:25 +01:00
PeterKietzmann
0be350e352
sys/puf_sram: CPU specific attributes for variables
2018-11-20 08:34:53 +01:00
Martine Lenders
0bdbb68959
gnrc_ipv6: drop packets with unspecified destination
...
It just doesn't makes sense to handle them any further
2018-11-17 15:45:25 +01:00
Martine Lenders
0aa96a4579
gnrc_icmpv6_error: fix doc alignment
2018-11-17 15:45:25 +01:00
Martine Lenders
ef1132384a
gnrc_icmpv6_error: check IPv6 header before starting to build
...
Check for:
- if it exists (critical error condition -- non-IPv6 headers should
not trigger these functions) => assert
- if it has a multicast source (that shouldn't really happen but
people might try weird stuff ;-)
- if it has an unspecified source (can't determine receiver of error
message => don't send it, don't build it)
2018-11-17 15:45:25 +01:00
Martine Lenders
d4f425bb00
gnrc_ipv6: allow for empty IPv6 header
2018-11-17 14:49:12 +01:00
Martine Lenders
3ec37acbd1
gnrc_ipv6: fix _fill_ipv6_hdr() for pure IPv6 packets
...
If a packet only contains IPv6 and IPv6 extension header snips (e.g. if
the IPv6 packet has no payload or if an extension header was not
pre-parsed)
2018-11-17 14:48:49 +01:00
Martine Lenders
e801829c7a
gnrc_udp: send ICMPv6 error messages where appropriate
2018-11-16 17:39:16 +01:00
Martine Lenders
db2da19ea4
gnrc_ipv6: send IPv6 error messages where appropriate
2018-11-16 17:39:16 +01:00
Martine Lenders
04a2827089
gnrc_icmpv6_error: provide NOPs when compiled without module
...
This is aimed to make the usage code of this module more readable.
2018-11-16 17:39:16 +01:00
Martine Lenders
697ad17ed1
icmpv6_error: doc: provide better references to error codes
2018-11-16 17:39:16 +01:00
Martine Lenders
b99e9f4185
gnrc_icmpv6_error: append IPv6 and netif header before sending
2018-11-16 17:39:16 +01:00
Martine Lenders
d161379e47
gnrc_icmpv6_error: re-order header inclusions
2018-11-16 17:39:16 +01:00
Martine Lenders
0b4230e5f6
gnrc_icmpv6_error: fix and optimize pointer search in _param_prob_build
2018-11-16 17:39:16 +01:00
Martine Lenders
335342a466
gnrc_icmpv6_error: fix build function for send and recv order
2018-11-16 17:39:16 +01:00
Martine Lenders
f0da2a0cd7
gnrc_icmpv6_error: don't include netif header into fit
2018-11-16 17:39:16 +01:00
Martine Lenders
c4175a5e52
gnrc_icmpv6_error: adapt _fit() to get MTU from netif
2018-11-16 17:39:16 +01:00
Martine Lenders
c8c8564d51
gnrc_icmpv6_error: use netapi_dispatch_send instead of netapi_send
2018-11-16 17:39:16 +01:00
Martine Lenders
ba13d8f5bf
gnrc_icmpv6_error: introduce debug messages
2018-11-16 17:39:15 +01:00
Martine Lenders
a7a8227e36
gnrc_icmpv6_error: centralize send function
2018-11-16 17:39:15 +01:00
Martine Lenders
36617f3733
gnrc_icmpv6_error: make input pointers constant
2018-11-16 17:39:15 +01:00
Martine Lenders
6ec456b0fc
gnrc_icmpv6_error: don't release orig_pkt on error
...
The stack might still wants to do something with the packet after
copying it to the error message.
2018-11-16 17:22:20 +01:00
Martine Lenders
3b56c78a3b
gnrc_icmpv6_error: make build functions private
2018-11-16 17:22:20 +01:00
Martine Lenders
a30bdebc2c
gnrc_icmpv6_error: remove static inline from functions
2018-11-16 17:22:20 +01:00
a79d03835a
Merge pull request #10417 from bergzand/pr/pkt/mark_const
...
gnrc/pkt: Add const keyword to length functions
2018-11-16 16:19:18 +01:00
21202e7e18
gnrc/pkt: Add const keyword to length functions
2018-11-16 15:06:39 +01:00
Juan Carrano
3393dafe82
sys/crypto: configure AES via pseudomodules.
...
USEMODULE += crypto_aes_precalculated enables the precalculated T tables (the old
code).
USEMODULE += crypto_aes_unroll causes loops to be unrolled.
2018-11-15 18:25:26 +01:00
Oleg Artamonov
05fe168a1e
sys/crypto: optimize AES
2018-11-15 18:21:17 +01:00
Martine Lenders
f2760c033c
gnrc_pktbuf: deprecate gnrc_pktbuf_duplicate_upto
2018-11-13 18:05:09 +01:00
Sebastian Meiling
1f7ec9b208
Merge pull request #10334 from maribu/saul_rssi
...
{drivers/saul,sys/phydat}: Added RSSI sensor and dBm unit
2018-11-12 21:01:24 +01:00
00b6e46abc
Merge pull request #8114 from cladmi/pr/crypto/ccm/auth_data_len_upper_bound
...
crypto/ccm: fix auth_data_len check
2018-11-12 17:30:17 +01:00
Wentao Shang
3fd8276c37
crypto/ccm: fix auth_data_len upperbound value
...
RFC3610 states that len_encoding is only valid for "0x0001 ... 0xFEFF"
If 0 < l(a) < (2^16 - 2^8), then the length field is encoded as two
octets which contain the value l(a) in most-significant-byte first
order.
2018-11-12 16:38:45 +01:00
Gaëtan Harter
f0e785a430
crypto/ccm: check ccm_compute_adata_mac return value
...
Return value was ignored but function could fail
2018-11-12 16:37:00 +01:00
Robin
e9047063ca
gnrc_sock_[udp|ip]: store return value before release
...
sock_[udp|ip]_recv returns `pkt->size` after pkt was released via `gnrc_pktbuf_release(pkt)`.
This can result in wrong values returned by this functions and thus is not according to its sepecification.
Storing this values before releasing pkt returning the stored values should fix this.
2018-11-12 14:58:26 +01:00
Martine Lenders
98f42eeea8
Merge pull request #10356 from miri64/gnrc_ipv6_nib/fix/netif_queued
...
gnrc_ipv6_nib: provide interface on packet queueing
2018-11-09 17:47:12 +01:00
Martine Lenders
94549d136b
gnrc_ipv6_nib_pl: return early if PL entry wasn't allocated
2018-11-09 15:40:46 +01:00
Martine Lenders
6d1a3caa26
gnrc_ipv6_nib: fix NULL pointer dereference
2018-11-09 15:39:41 +01:00
Martine Lenders
ce0c46836c
gnrc_ipv6_nib: provide interface on packet queueing
...
Without this the first packet to a new link-local address will not be
delivered in non-6Lo environments, since the interface is not provided.
With this change, if an internet was provided to the address resolver it
will be stored within an allocated `gnrc_netif_hdr_t`.
At this point [IPv6 already striped](netif strip) the packet of its
netif header, so there is no risk that there will be to, in case it was
provided and the `netif` came from its existence.
2018-11-09 12:56:20 +01:00
Hauke Petersen
73534850fa
sys/auto_init: add auto init for nimble
2018-11-08 14:40:52 +01:00
60a6e66f77
Merge pull request #10246 from miri64/gnrc_ipv6/fix/encaps-ipv6-recursion
...
gnrc_ipv6: don't recurse into receive for encapsulated IPv6
2018-11-08 12:34:40 +01:00
66e0d48037
Merge pull request #10159 from mtausig/crypto_documentation
...
crypto: fix several documentation issues
2018-11-08 12:13:59 +01:00
Martine Lenders
d54ac38f84
gnrc_ipv6: don't dispatch encapsulated IPv6 headers in central function
...
Otherwise, an encapsulated IPv6 packet is handled twice. Once in the
central function, once in the specialized decapsulation.
2018-11-08 11:54:05 +01:00
Martine Lenders
160ccbcf7e
gnrc_ipv6: don't recurse into receive for encapsulated IPv6
...
`_decapsulate()` is called by callees of `_receive()` so the call to
the latter function within the first creates a recursion we don't want.
Using `gnrc_netapi` instead removes that and provides the added benefit
that other subscribers to IPv6 are also informed.
2018-11-08 11:54:05 +01:00
Mathias Tausig
4272ccf281
crypto: Fix whitespace errors
2018-11-08 11:25:50 +01:00