b8a494fb76
sock_util: Prevent overflow in sock_urlsplit
...
This adds a length check to verify if the host-port part of the URL fits
in the supplied buffer
2018-07-19 22:07:18 +02:00
3096823ab4
sock_util: Allow URLs without path as valid
...
URLs without a path were treated as invalid, while according to the URL
specification they are valid
Also fixes a missing null terminator in the returned path
2018-07-19 22:07:18 +02:00
3402e3509c
sock_util: Prevent overflow in _find_pathstart
...
Limit the number of scanned chars in _find_pathstart to the predefined
size
2018-07-19 22:07:18 +02:00
b0309145f0
sock_util: Limit URL scheme size
2018-07-19 22:07:17 +02:00
4c183257df
sock_util: Fix null terminator in sock_udp_ep_fmt
2018-07-18 17:44:03 +02:00
6a81a4d587
sock_util: add missing includes
2018-07-18 17:43:59 +02:00
Francisco Acosta
d04058b54b
Merge pull request #9579 from MichelRottleuthner/pr_stm32_fix_ram_lengths
...
stm32_common: fix ram length for MCUs with non-contiguous ram regions
2018-07-18 14:35:29 +02:00
Martine Lenders
9f93745734
Merge pull request #9358 from gebart/pr/cflags-cleanup
...
makefiles/cflags.inc.mk: Use a template for CFLAGS testing
2018-07-18 14:11:49 +02:00
Peter Kietzmann
063c54ac3d
Merge pull request #9077 from gschorcht/enc28j60-improve
...
enc28j60: improvements to fix #9043
2018-07-17 19:45:18 +02:00
Gunar Schorcht
738c1161c0
enc28j60: improvements to fix #9043
2018-07-17 19:19:15 +02:00
Peter Kietzmann
ab5771bbf8
Merge pull request #9587 from bergzand/pr/kw2xrf/fix_ack_req
...
kw2xrf: Fix ack flag handling
2018-07-17 18:43:26 +02:00
Michel Rottleuthner
aca8953827
tests: add nucleo-f303k8 to BOARD_INSUFFICIENT_MEMORY
2018-07-17 17:52:12 +02:00
Michel Rottleuthner
31efe7411c
examples: add nucleo-f334r8 to BOARD_INSUFFICIENT_MEMORY
2018-07-17 17:52:12 +02:00
Michel Rottleuthner
484ea216da
examples: add nucleo-f303k8 to BOARD_INSUFFICIENT_MEMORY
2018-07-17 17:52:12 +02:00
Michel Rottleuthner
b36131eea6
cpu/stm32_common: add variable for SRAM2 length on stm32l47xxx
2018-07-17 17:52:12 +02:00
Martine Lenders
9421356f08
Merge pull request #9590 from cladmi/pr/unittest/increase_timeout
...
unittests: increase test timeout
2018-07-17 17:46:13 +02:00
Michel Rottleuthner
5610894ebe
stm32_common: fix ram length for MCUs with non-contiguous ram
...
stm32l47xxx see RM0351, Rev 6, page 75
https://www.st.com/resource/en/reference_manual/dm00083560.pdf#page=75
stm32f303xx see RM0316, Rev 8, page 53
https://www.st.com/resource/en/reference_manual/dm00043574.pdf#page=53
stm32f334xx see RM0364, Rev 3, page 47
https://www.st.com/resource/en/reference_manual/dm00093941.pdf#page=47
2018-07-17 17:12:57 +02:00
Gaëtan Harter
690fdb11ab
unittests: increase test timeout
...
It currently takes 1m30 to run on iotlab-m3.
2018-07-17 17:00:17 +02:00
Francisco Acosta
a0a31120b2
Merge pull request #9429 from kaspar030/some_riscv_fixes
...
boards/hifive1: add serial terminal config
2018-07-17 14:36:29 +02:00
1dd4a46c90
Merge pull request #9584 from PeterKietzmann/pr_cc2420_max_pkt_size
...
drivers/cc2420: add netopt NETOPT_MAX_PACKET_SIZE
2018-07-17 14:12:10 +02:00
b21c4f6f98
kw2xrf: fix NETOPT_AUTOACK getter and setter
...
Missing getter for NETOPT_AUTOACK and getter should return the size of
the variable (should not propagate to the netdev_ieee802154_get
function
2018-07-17 13:58:58 +02:00
4b723859f3
kw2xrf: use ACK_REQ flag for ACK check on TX
2018-07-17 13:57:30 +02:00
Peter Kietzmann
2bc48c3953
Merge pull request #9577 from bergzand/pr/netdev/rem_default_tell_opts
...
drivers/radios: remove default event reporting flags
2018-07-17 13:47:33 +02:00
PeterKietzmann
838b18e8f9
drivers/cc2420: add netopt NETOPT_MAX_PACKET_SIZE
2018-07-17 12:00:12 +02:00
7f6fe21b93
Merge pull request #9580 from OTAkeys/pr/at_on_off
...
drivers/at: add poweron/off functions
2018-07-17 10:31:20 +02:00
Vincent Dupont
12a5c5e3b0
tests/driver_at: adapt test app with poweron/off
2018-07-17 10:15:35 +02:00
Vincent Dupont
21867b2867
drivers/at: ad poweron/off functions
2018-07-17 10:02:36 +02:00
Peter Kietzmann
2abe944a16
Merge pull request #9535 from bergzand/pr/netdev/reset_rand_seq
...
netdev_ieee802154: Initialize sequence number to random value
2018-07-17 08:22:34 +02:00
Francisco Acosta
b46f7e0f22
Merge pull request #9578 from miri64/make/fix/BUILDRELPATH
...
make: make BUILDRELPATH dependent on selected path
2018-07-16 16:34:14 +02:00
608f0135d7
zep: Use netdev reset function
2018-07-16 15:36:34 +02:00
aecbad960a
netdev: Initialize sequence number to random value
2018-07-16 15:36:30 +02:00
Martine Lenders
ecaef7bfc5
Merge pull request #9575 from bergzand/pr/pkg/emb6/rnd_conflict
...
pkg/emb6: Add random functions to rename patch
2018-07-16 15:35:42 +02:00
8903b34924
Merge pull request #8215 from miri64/gnrc_ipv6/opt/simplify-send
...
gnrc_ipv6: clean-up and simplify send handling
2018-07-16 15:21:55 +02:00
Martine Lenders
ff46796002
make: make BUILDRELPATH dependent on selected path
...
When selecting a directory to build using `-C` with make
`BUILD_IN_DOCKER` will fail, because the `BUILDRELPATH` chooses the path
`make` is executed in, not the path selected by `-C`. This fixes this
bug by replacing `PWD` in the macro's definition with `CURDIR`.
2018-07-16 15:15:04 +02:00
Martine Lenders
d8081453f2
gnrc_ipv6: clean-up and simplify send handling
...
This change is a gnrc_ipv6_nib/gnrc_netif(2)-based rework of #7210 .
Packet duplication
==================
Its main optimization is that it restructures `gnrc_ipv6` handling of
sent packets so that duplication for write-protection happens at the
latest possible step:
* potential `gnrc_netif` headers added by upper layers are
write-protected before their removal
* This unifies the duplication of the IPv6 header directly after
that
* Extension headers in-between the IPv6 header and the payload header
are duplicated just before the check sum is duplicated
Especially the last point allows for only handing a single packet snip
to all lower functions instead of an already searched IPv6 header
(which now is always the first until it is handed to the interface) +
payload header.
Further clean-ups
=================
* Next-hop link-layer address determination was moved to the
`_send_unicast` function, greatly simplifying the unicast case in the
`_send` function
* Code for loopback case was added to a new function `_send_to_self`
* Removed some code duplication
2018-07-16 15:08:56 +02:00
71fac036e5
mrf24j40: Remove default event report settings
2018-07-16 14:43:45 +02:00
be7c4f7f28
kw2xrf: Remove default event report settings
2018-07-16 14:43:28 +02:00
965cece510
cc2420: Remove default event report settings
2018-07-16 14:43:12 +02:00
173136a270
at86rf2xx: Remove default event report settings
2018-07-16 14:40:51 +02:00
f2791dcec5
pkg/emb6: Rebuild patches for consistency
2018-07-16 14:30:28 +02:00
3c128a0ed7
pkg/emb6: Add utils/random to rename patch
...
Both random_init and random_rand are prefixed with emb6_ to prevent
function name collisions with RIOT
2018-07-16 14:27:38 +02:00
Peter Kietzmann
446ff9f282
Merge pull request #9553 from bergzand/pr/pkg/lwip/set_netdev_events
...
lwip: explicitly set required netdev events
2018-07-13 17:09:45 +02:00
Peter Kietzmann
9f34513eec
Merge pull request #9563 from bergzand/pr/netif/netdev_recv_reset
...
gnrc_netif_ieee802154: drop frame on buffer error
2018-07-13 16:21:33 +02:00
9f289dff1b
Merge pull request #9543 from smlng/pr/netdev/reset
...
cc2538: use netdev reset
2018-07-13 14:52:39 +02:00
Peter Kietzmann
0aa5d8139b
Merge pull request #9556 from bergzand/pr/pkg/emb6/set_netdev_events
...
emb6: explicitly configure RX complete interrupt
2018-07-13 13:58:44 +02:00
smlng
0067be035c
cpu/cc2538: cleanup netdev calls in radio driver
...
Cleanup netdev calls using &dev->netdev for all functions and
thereby omiting the explicit cast.
2018-07-13 12:17:03 +02:00
smlng
520f5b60b3
cpu/cc2538: use netdev reset function in radio driver
2018-07-13 12:17:03 +02:00
Peter Kietzmann
fd8ef789b7
Merge pull request #9531 from bergzand/pr/netdev/reset_refactor
...
netdev_ieee802154: Add and use common reset function
2018-07-13 12:01:14 +02:00
Peter Kietzmann
7816d359fe
Merge pull request #9562 from bergzand/pr/mrf24j40/netdev_recv_fix
...
mrf24j40: Fix netdev recv implementation
2018-07-13 10:51:29 +02:00
fb27efb919
Merge pull request #9555 from bergzand/pr/pkg/openthread/netdev_rx_cb_enable
...
openthread: Enable RX complete netdev event
2018-07-13 09:17:38 +02:00