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

5068 Commits

Author SHA1 Message Date
Martine Lenders
f5b65abb30
Merge pull request #8622 from miri64/gnrc_netreg/fix/revert-8517-partly
gnrc_netreg: Revert #8517 partly
2018-02-23 12:29:26 +01:00
df16e7d5af
phydat: Add parts per million unit 2018-02-23 11:39:09 +01:00
de75eb8111
Merge pull request #8620 from smlng/fix/sys/can
sys/can: fix compiler warning due to usage of potentially uninitialized variables
2018-02-22 22:04:47 +01:00
Martine Lenders
2316d336da gnrc: keep speed optimizations of c2b403f4 2018-02-22 20:40:59 +01:00
Martine Lenders
467e9548cf gnrc_netreg: optimize gnrc_netreg_num() to use _netreg_lookup() 2018-02-22 20:39:23 +01:00
Martine Lenders
dbda759b40 Revert "gnrc/netreg: remove usages of gnrc_netreg_num"
This reverts commit c2b403f4ad.
2018-02-22 20:30:03 +01:00
Martine Lenders
49f80b7cf1 Revert "gnrc/netreg: remove gnrc_netreg_num"
This reverts commit c178ea8798.
2018-02-22 20:28:32 +01:00
Ken Bannister
d7004ebcd8
Merge pull request #8513 from kaspar030/nanocoap_add_context_to_resources
nanocoap: add context pointer to resources
2018-02-22 18:30:43 +00:00
smlng
18bccb55e3 sys/can: reduce scope of variable 2018-02-22 19:13:39 +01:00
smlng
b46b24b34f sys/can: init variables before usage 2018-02-22 19:12:41 +01:00
5efd9599e0 sys/benchmark: remove BENCHMARK_SETUP() 2018-02-20 10:10:13 +01:00
Martine Lenders
26ad044e12
Merge pull request #8563 from miri64/gnrc_ipv6_nib/fix/6lo-tentative
gnrc_ipv6_nib_6ln: do not mark non-link-local addresses directly VALID
2018-02-19 15:28:08 +01:00
Martine Lenders
e11550042c gnrc_ipv6_nib_6ln: only register addresses not VALID yet
With the previous fix, we only have to register addresses that are not
VALID yet on reception of router advertisements. This removes the need
for the hacky `GNRC_NETIF_FLAGS_6LO_ADDRS_REG` flag that was only
introduced to prevent unnecessary re-registration.
2018-02-19 14:39:29 +01:00
Martine Lenders
8c8b6f9494 gnrc_ipv6_nib_6ln: do not mark non-link-local directly VALID
The whole address registration looses its point if all addresses are
marked valid from the get-go. With this fix non-link-local addresses
are first marked TENTATIVE and only after successful registration
marked as VALID. Link-local addresses are assumed to always be VALID.
2018-02-19 14:38:27 +01:00
Semjon Kerner
22c49e99b5 sys/auto_init/saul: provide saul adaption for bmx055 2018-02-19 14:28:16 +01:00
Joakim Nohlgård
73c11a366c
Merge pull request #8430 from smlng/gcc7/ignore_fallthroughs
make: ignore fallthroughs errors with GCC 7.x
2018-02-19 11:04:16 +01:00
Joakim Nohlgård
a25c059f1f
Merge pull request #8368 from smlng/examples/fix_posix
posix: fix pthread and socket example
2018-02-19 10:58:02 +01:00
Joakim Nohlgård
354499d397
Merge pull request #8588 from rxwb/fix_saul_reg_rm
sys/saul_reg: Fix saul_reg_rm return value when removing first element
2018-02-19 10:38:14 +01:00
e2b6d6b89a
Merge pull request #8584 from miri64/gnrc_sock/fix/err-report-ptr
gnrc_sock: make sock compilable with gnrc_neterr
2018-02-19 09:51:09 +01:00
f59e8247b0
Merge pull request #8040 from haukepetersen/add_bench_periphgpiototest
tests/periph_gpio: added benchmark capabilities
2018-02-19 09:48:39 +01:00
Martine Lenders
f0c401c36d
Merge pull request #8580 from kb2ma/gcoap/sock_send_result
net/gcoap: fix sock send return type
2018-02-18 13:43:31 +01:00
Ronald Weber
a5a52980ba sys/saul_reg: Fix saul_reg_rm for first element 2018-02-18 11:30:46 +01:00
Martine Lenders
2621a57362 gnrc_sock: make sock compilable with gnrc_neterr
gnrc_sock currently does not compile with `gnrc_neterr` included, since
both `msg_try_receive()` and `msg_try_send()` expect a *pointer* to a
`msg_t`, not a `msg_t`.

To test, just compile an application using `gnrc_sock` (e.g.
`examples/gcoap`) with `USEMODULE+=gnrc_neterr`.
2018-02-17 13:53:38 +01:00
Ken Bannister
81ecd37a5e net/gcoap: fix sock send return type 2018-02-17 06:20:38 -05:00
Martine Lenders
ed0fbbb2a3 shell: adapt 6ctx command for NIB
This somehow was left by the wayside when we moved from the old ND to
the NIB. Also piggybacks some fixes.
2018-02-16 12:22:56 +01:00
Martine Lenders
1156721eaf gnrc_sixlowpan_nd: add missing header
`gnrc_pktsnip_t` is used in `net/gnrc/sixlowpan/nd.h` but it is not
included. There were no compile errors yet, since this file is always
included with some other GNRC headers, but it might not in the future.
2018-02-16 12:16:56 +01:00
Martine Lenders
328408bd21 gnrc_ipv6_nib: only activate MULTIHOP_P6C for 6LR and up
Non-routing 6LN can ignore the ABRO, so we can deactivate multihop
prefix and 6LoWPAN distribution altogether (since hosts do not have a
downstream hop).
2018-02-16 11:42:04 +01:00
Martine Lenders
3a8695bd0c gnrc_ipv6_nib: only discard RAs without ABROs on 6LR
[RFC6775] only talks of *routers* processing router advertisements,
with regards of discarding them if they do not contain an ABRO.

Additionally, this change makes configuration of tests setups a lot
easier, where one note is a router distributing a prefix and the other
is a host to be configured with the RA. Just do the following on the
router:

```
> ifconfig <if> add <GUA>
> ifconfig <if> rtr_adv
```

e voilà! In current master both nodes would have needed to be compiled
with `GNRC_IPV6_NIB_CONF_MULTIHOP_P6C=0`.

[RFC6775]: https://tools.ietf.org/html/rfc6775#section-8.1.3
2018-02-15 14:40:33 +01:00
Martine Lenders
756edfd7a5
Merge pull request #8565 from bergzand/pr/event/doc/fix-timeout-unit
event: fix additional unit in doc for event_timeout_set()
2018-02-14 21:08:29 +01:00
266ba4b968
event: fix additional unit in doc for event_timeout_set() 2018-02-14 20:21:41 +01:00
Martine Lenders
519c4f3bdd event: fix unit in doc for event_timeout_set() 2018-02-14 18:37:57 +01:00
Martine Lenders
d458abfa0e ieee802154: Make 2 default channel page for sub GHz 2018-02-14 08:20:09 +01:00
Joakim Nohlgård
be14d2eace sys/vfs: Exclude stdio file numbers from auto allocation
Fixes #8309 (https://github.com/RIOT-OS/RIOT/issues/8309)
2018-02-13 18:05:28 +01:00
Joakim Nohlgård
490e7c87e0 sys/vfs: Check suggested fd is valid
Avoids out of bounds array access on _vfs_open_files if vfs_bind is
called with an invalid (positive) fd number
2018-02-12 08:45:19 +01:00
Vincent Dupont
dfbbc0aa9f
Merge pull request #8315 from OTAkeys/pr/vfs_format
vfs: add format in vfs API
2018-02-09 14:48:56 +01:00
Vincent Dupont
d5bce2440b vfs: do not umount fs which is not mounted 2018-02-09 14:29:46 +01:00
Vincent Dupont
2eca6d25fd vfs: add format function in vfs api 2018-02-09 14:29:45 +01:00
Joakim Nohlgård
2cc07f7f05
Merge pull request #7390 from tobhe/random
random: add random_bytes() function
2018-02-09 10:33:46 +01:00
Daniel Krebs
cbc9121ad4 gnrc/netif: fix source address selection for non-matching prefixes
According to RFC 6724 ch. 5 rule 8, the source address candidate with
the longest matching prefix has to be selected. The current
implementation discards source addresses that have no matching prefix
(`match = 0`) which is perfectly fine for any global address.
2018-02-08 13:46:46 +01:00
Jose Alamos
66cab7762a doc: fix event_t attribute in documentation 2018-02-08 09:59:16 +01:00
Joakim Nohlgård
9fe024b87e fmt: Adjust stack allocated buffer, add comments
Adjusted buffer size for u64 case to fit the largest 64 bit decimal
number, added comments on all decimal buffers to explain which number
will fit.
2018-02-07 10:21:22 +01:00
Martine Lenders
47bbeb8969
Merge pull request #8517 from smlng/enh/gnrc/netreg
gnrc_netreg: some optimisations
2018-02-07 08:22:44 +01:00
Joakim Nohlgård
30ad56d133
Merge pull request #8522 from gebart/pr/fmt_s64_dec
sys/fmt: Add fmt_s64_dec, print_s64_dec
2018-02-07 07:55:42 +01:00
smlng
c178ea8798 gnrc/netreg: remove gnrc_netreg_num 2018-02-06 21:41:19 +01:00
smlng
c2b403f4ad gnrc/netreg: remove usages of gnrc_netreg_num 2018-02-06 21:39:58 +01:00
smlng
573b6dc98a gnrc/netreg: optimize lookup and getnext 2018-02-06 21:37:39 +01:00
4ec8f4c2fc sys: instead of cpp-style, use C-style comments 2018-02-06 16:59:58 +01:00
jia200x
c61c44a1ae
Merge pull request #8374 from Hyungsin/forupstream_radio_ackpending
driver/at86rf2xx: add an option for auto-ack with the pending bit
2018-02-06 14:15:40 +01:00
Joakim Nohlgård
5ec44c82ba fmt: Add fmt_s64_dec, print_s64_dec 2018-02-06 11:04:42 +01:00
Martine Lenders
d4661af4c8 gnrc: 6Lo fixes for BLE 2018-02-05 22:34:31 +01:00
Martine Lenders
51ae9d9c87 nordic_softdevice_ble: fixes for gnrc_netif usage 2018-02-05 22:34:11 +01:00
ab1d02bc8c
Merge pull request #8499 from miri64/gnrc_icmpv6_echo/fix/loopback
gnrc_icmpv6_echo: fix ping for loopback
2018-02-05 11:02:57 +01:00
Martine Lenders
7f0a7b1fe8
Merge pull request #8503 from beduino-project/ieee802154-buffer-access
gnrc_netif: Fix out-of-bounds buffer access in ieee802154 netif
2018-02-03 13:55:32 +01:00
Sören Tempel
cfe0143eec gnrc_netif: Fix out-of-bounds buffer access in ieee802154 netif 2018-02-03 13:08:59 +01:00
aa52f5334b sys/net/gcoap: adapt to resource context ptr 2018-02-02 19:01:58 +01:00
0729259390 nanocoap: add context ptr to coap_resource_t 2018-02-02 18:54:29 +01:00
Sebastian Meiling
283b2b8283
Merge pull request #8504 from beduino-project/nanocoap-packed
nanocoap: use __attribute__((packed)) for coap_hdr_t
2018-02-01 10:58:47 +01:00
Joakim Nohlgård
9af2696d2f pm_layered: Use {} for empty while loops 2018-02-01 06:55:49 +01:00
Sören Tempel
45a69f29d5 nanocoap: use __attribute__((packed)) for coap_hdr_t 2018-01-31 21:41:53 +01:00
Hyungsin
f52efef0d5 netopt: Add NETOPT_ACK_PENDING 2018-01-31 11:58:48 -08:00
Martine Lenders
12fad002da gnrc_icmpv6_echo: fix ping for loopback
At the moment ping is crashing if one pings the loopback address.
This was caused in #8214 when we moved interfaces from `kernel_pid_t`
ID to pointer-based handling, since loopback doesn't evaluate to such
an interface.
2018-01-31 15:46:52 +01:00
Hauke Petersen
55629e0a1c sys: added simple benchmark module 2018-01-31 13:55:36 +01:00
Martine Lenders
aa7a2da054
Merge pull request #8490 from miri64/gnrc/fix/xbee
gnrc: fix link-layer/IPv6 address conversion for XBee
2018-01-31 11:03:13 +01:00
Martine Lenders
c40a05b6a8 gnrc: fix link-layer/IPv6 address conversion for XBee 2018-01-31 10:54:28 +01:00
Gaëtan Harter
724680703f
Merge pull request #8478 from miri64/sntp/enh/higher-timeout
shell_commands: sntp: increase default timeout
2018-01-30 21:30:00 +01:00
Gaëtan Harter
4a21fd430e sntp.h: document sntp_sync timeout unit
It uses the same unit as sock_udp_recv.
2018-01-30 21:18:36 +01:00
Martine Lenders
e6fa76e9b0 shell_commands: sntp: increase default timeout 2018-01-30 21:07:26 +01:00
Martine Lenders
3c5d476f84 shell_commands: specify SNTP timeout time unit 2018-01-30 21:07:26 +01:00
Gaëtan Harter
934b075f76
Merge pull request #7883 from Hyungsin/hamilton-pushbutton
pulse counter driver: initial SAUL-compatible implementation
2018-01-30 19:35:44 +01:00
Martine Lenders
c0dcff6dd0
Merge pull request #8421 from aabadie/pr/zep_doxygen_bis
sys/net/zep: add missing doxygen brief description
2018-01-30 17:34:09 +01:00
Martine Lenders
f1f079fb0e
Merge pull request #8480 from miri64/gnrc_ipv6_nib/fix/fix-conv
gnrc_ipv6_nib: ignore corner case when adding to PL
2018-01-30 13:52:15 +01:00
Martine Lenders
8e80a372cb gnrc_ipv6_nib: ignore corner case when adding to PL
In #8135 the handling of corner cases for the conversion of
milliseconds to seconds, but the internal handling was not adapted.
2018-01-30 12:28:50 +01:00
Sebastian Meiling
0abbd9db8f
Merge pull request #8439 from smlng/net/gnrc/netreg/fix_assert
gnrc/netreg: fix assert
2018-01-29 16:46:19 +01:00
Martine Lenders
763b887017 gnrc_ipv6_nib: release packages for forwarding error cases 2018-01-26 17:35:57 +01:00
Martine Lenders
70c1fb7b4e gnrc_ipv6_nib: fix final RA behavior
This fix

* assures that the periodicity of the final router advertisements is
  kept (so that no administrative change e.g. adding prefixes to the
  prefix list causes additional RAs outside the rate limitation)
* removes all administrative options (PIO, ABRO, 6CO) from final router
  advertisements (with router lifetime == 0)
2018-01-26 13:57:19 +01:00
smlng
321067b99f gnrc/netreg: remove unnecessary DEVELHELP condition 2018-01-25 17:01:10 +01:00
smlng
b3fde3429c gnrc/lwmac: ignore implicit fallthrough error by GCC 7 2018-01-24 22:07:01 +01:00
smlng
15f73e76ad gnrc/gomach: ignore implicit fallthrough error by GCC 7 2018-01-24 22:06:51 +01:00
b443e53ccb sys/net/zep: add missing doxygen brief description 2018-01-24 21:41:31 +01:00
Martine Lenders
718a45e22a
Merge pull request #8416 from miri64/gnrc_netif/doc/remove-new
gnrc_netif: remove "new" qualifier in documentation
2018-01-23 15:36:31 +01:00
Martine Lenders
1a4d824027 gnrc_netif: remove "new" qualifier in documentation
Calling the API "new" when it is the only network interface API (that
also now is named the same as the old one) might be a little confusing.
2018-01-23 15:02:35 +01:00
Martine Lenders
d0140a9ec8
Merge pull request #8380 from miri64/gnrc_netif/enh/6lo-nrfmin
gnrc_netif: set-up 6Lo for NRFmin
2018-01-23 11:17:29 +01:00
Martine Lenders
6cabac3600 gnrc_ipv6_nib: add reverse-translation for NRFmin 2018-01-22 16:15:30 +01:00
Sebastian Meiling
3bb169307b
Merge pull request #8364 from smlng/osx/debug/fix_output
macOS: fix debug output
2018-01-22 15:14:48 +01:00
Hauke Petersen
bb8ba486d8 sys/auto_init: add SAUL initialization for lis2dh12 2018-01-18 18:39:43 +01:00
f9eabb5d69 sys/net/loramac: rename default device class define 2018-01-18 15:30:52 +01:00
Martine Lenders
851eb767be gnrc_netif: set-up 6Lo for NRFmin 2018-01-18 13:00:25 +01:00
Sebastian Meiling
5c0b058db4
Merge pull request #6121 from miri64/native/feat/zep_socket
native: provide socket-based ZEP device
2018-01-18 10:03:08 +01:00
Martine Lenders
81ef15287a native: provide socket-based ZEP device 2018-01-18 09:15:37 +01:00
3f990480d1
Merge pull request #7162 from kb2ma/nanocoap/msgid_byte_order
nanocoap: fix byte order of request message ID, and add test application
2018-01-17 22:59:07 +01:00
d27fa8efa5
Merge pull request #8214 from miri64/gnrc_ipv6/enh/simplify-netif-access
gnrc_ipv6: gnrc_icmpv6: simplify access to network interfaces
2018-01-17 17:02:55 +01:00
Martine Lenders
7c0bb427fa gnrc_ipv6: gnrc_icmpv6: simplify access to network interfaces 2018-01-17 16:48:58 +01:00
Hyungsin
149914000f sys/auto_init: add SAUL auto init for pulse counter 2018-01-17 06:29:05 -08:00
smlng
928292f464 sys/shell: fix format error in debug output 2018-01-17 15:25:15 +01:00
smlng
eb3bfdf1d2 sys/vfs: fix format error in debug output 2018-01-17 15:25:15 +01:00
smlng
65b99c994d gnrc/sixlowpan: fix format error in debug output 2018-01-17 15:25:15 +01:00
smlng
026bc281ae gnrc/netif: fix format error in debug output 2018-01-17 15:25:15 +01:00
Sebastian Meiling
50f3d6a427
Merge pull request #7337 from kb2ma/gcoap/confirm_piggy_client
net/gcoap: Confirmable request with piggybacked ACK response
2018-01-16 20:35:32 +01:00
smlng
6b0491eca2 sys/posix: fix intentional fallthrough in pthread 2018-01-16 13:21:24 +01:00
Sebastian Meiling
0d1f40393f
Merge pull request #8362 from beduino-project/gcoap-check-for-ndebug
gcoap: check if NDEBUG is defined
2018-01-16 13:18:41 +01:00
Ken Bannister
5e1d3fe0ae net/gcoap: Update doc for confirmable message 2018-01-16 06:37:29 -05:00
Ken Bannister
4223de6b8b net/gcoap: automate retries for confirm timeout 2018-01-16 06:37:29 -05:00
Sören Tempel
89edc437d5 gcoap: remove the #ifdef DEVELHELP
To make sure the cf variable doesn't trigger an `unsed variable` warning
when compile with `-DNDEBUG`.
2018-01-16 11:06:28 +01:00
Ken Bannister
87e334a2d5 net/nanocoap: add macro for timeout calculation 2018-01-15 23:21:05 -05:00
Ken Bannister
d5e4da74bf net/gcoap: improve validation of incoming message 2018-01-15 23:21:05 -05:00
Ken Bannister
4062b1f660 net/gcoap: populate confirm request attributes
Also, create resend_bufs array to store PDU for resend.
2018-01-15 23:21:05 -05:00
Sebastian Meiling
eb89954f13
Merge pull request #5166 from kaspar030/syntax_check_debug_code
core: debug: rely on optimizer to kick out unused debug code
2018-01-15 14:52:35 +01:00
ed847a9fdd sys: fs: constfs: DEBUG fixes 2018-01-15 14:37:05 +01:00
38f18137f8 sys/cbor: DEBUG fixes 2018-01-15 14:37:05 +01:00
7b72f623d2 gnrc: netif2: DEBUG fixes 2018-01-15 14:37:05 +01:00
12d4254ae1 gnrc: nib: DEBUG fix 2018-01-15 14:37:05 +01:00
fd884c2d05 gnrc: rpl: DEBUG fix 2018-01-15 14:37:05 +01:00
d8051a2d73 sys/can: DEBUG fixes 2018-01-15 14:37:05 +01:00
af991deeb2 sys: net: gcoap: DEBUG fixes 2018-01-15 14:37:04 +01:00
56b8c55f1a gnrc: mac: DEBUG fix 2018-01-15 14:37:04 +01:00
35ea251516 gnrc: lwmac: DEBUG fix 2018-01-15 14:37:04 +01:00
702ec4a517 sys/posix: pthread_barrier: DEBUG fix 2018-01-15 14:37:04 +01:00
dcc0804e10 sys/vfs: DEBUG fix 2018-01-15 14:37:04 +01:00
8a74210b31 gnrc/netapi: DEBUG fix 2018-01-15 14:37:04 +01:00
c6b482d56c posix: pthread_rwlock: fix DEBUG messages 2018-01-15 14:37:04 +01:00
4dba9ee6ba sys: net: adapt to compile-checked debug messages 2018-01-15 14:37:04 +01:00
Martine Lenders
6b79c5e9d5
Merge pull request #8358 from MichelRottleuthner/pr_fix_sntp
sntp: set netif when using link local address
2018-01-14 17:35:13 +01:00
Michel Rottleuthner
bbd8d67bf9 address request by miri64 (interface as shell param) 2018-01-14 16:55:14 +01:00
0af100412c
Merge pull request #8346 from miri64/doc/fix/ndp-dad-max
ndp: sixlowpan_nd: explain maximum retransmission for DAD
2018-01-12 20:02:21 +01:00
Michel Rottleuthner
3056104187 sc_sntp: set netif when using link local address 2018-01-12 19:09:37 +01:00
Ken Bannister
c9b6e990f7 net/nanocoap: message ID received in host order 2018-01-12 05:58:52 -05:00
2d02bc0394 sys/fmt: add new byte to hex converters:
- fmt_bytes_hex: converts an array of bytes to an array of hex bytes
- fmt_hex_bytes: convert an array of hex bytes to an array of bytes
2018-01-10 21:30:39 +01:00
Martine Lenders
15224b0d91 ndp: sixlowpan_nd: explain maximum retransmission for DAD
In #8277 it was noted the doc of general ND definitions refers to
GNRC-specific behavior. This is now clarified with this fix.
2018-01-10 20:40:47 +01:00
Martine Lenders
4013adcf65
Merge pull request #8277 from miri64/doc/fix/must-not-may-not-wording
doc: Fix 'must not'/'may not' wording
2018-01-10 20:34:17 +01:00
18b1ac5022 sys/net/loramac: various improvements
- add missing typedef enums
- add default device class parameter
2018-01-10 17:46:03 +01:00
Sebastian Meiling
ebaa60a7f6
Merge pull request #8239 from OTAkeys/pkg_littlefs
fs: add littlefs as a package
2018-01-09 17:14:45 +01:00
Vincent Dupont
c8eb77e8ff pkg: add littlefs pkg and vfs integration 2018-01-09 17:03:44 +01:00
Sebastian Meiling
e8a0b75ffd
Merge pull request #8334 from haukepetersen/fix_xtimer_remduplicatsetdecl
sys/xtimer: remove duplicat _xtimer_set declaration
2018-01-09 16:00:58 +01:00
Martine Lenders
810608e414
Merge pull request #8335 from OTAkeys/pr/can_fix_fall_through
can: fix fall through error
2018-01-09 15:59:30 +01:00
Hauke Petersen
6b526f05de sys/xtimer: remove duplicat _xtimer_set declaration 2018-01-09 15:43:59 +01:00
Martine Lenders
03fdaaeb8c
Merge pull request #8338 from haukepetersen/add_event_timeoutclear
sys/event/timeout: add timeout_clear() function
2018-01-09 15:40:40 +01:00
Hauke Petersen
cef3d307c7 sys/event/timeout: fixed typos and line lengths 2018-01-09 15:21:40 +01:00
Hauke Petersen
03dccb568d sys/event/timeout: add timeout_clear() function 2018-01-09 15:21:29 +01:00
MichelRottleuthner
198ced4933 pkg/fatfs: integrate diskio layer to mtd interface 2018-01-09 14:46:40 +01:00
MichelRottleuthner
ee17dae5af pkg/fatfs: add vfs integration 2018-01-09 14:46:40 +01:00
dd9e75a469 sys/net/loramac: add device class enum 2018-01-09 14:21:09 +01:00
Vincent Dupont
fb393905dd can: fix fall through error 2018-01-08 18:07:31 +01:00
Martine Lenders
e888e47a0c
Merge pull request #8325 from miri64/gnrc_netif/enh/add-nrfmin-iid
gnrc_netif: add nrfmin IID support
2018-01-05 13:29:19 +01:00
Martine Lenders
c6833704dc gnrc_netif: add nrfmin IID support
Adds a `nrfmin` case to IID generation, so an IID can be generated
from a `nrfmin` device's (short) address (the long address is just
4-time repetition of the short address).
2018-01-05 13:06:35 +01:00
Martine Lenders
3a493436ba gnrc_netif: generalize IID generation for short addresses
Moves setting of addresses of length lesser than 3 to a function that
initializes the first 5 byte of the IID with `00:00:00:ff:fe` and then
fills up the rest with zeroes and the given short address.
2018-01-05 13:06:35 +01:00
Martine Lenders
cee9a9c173 gnrc_ipv6_nib: fix nrfmin module check
The module is called `nrfmin` not `netdev_nrfmin`. As such this compile
path was never included, even if the `nrfmin` module was present.
2018-01-05 10:40:25 +01:00
Sören Tempel
35fea645c1 gcoap: return Method Not Allowed if appropriate 2017-12-26 18:17:45 +01:00
9843b37ec9 sys/net/loramac: rename network session key 2017-12-22 17:12:12 +01:00
Sebastian Meiling
5f8e37ee2b
Merge pull request #8294 from cladmi/pr/sys/crypto/ccm/fixup_docstring
sys/crypto/ccm: fix docstring value for 'nonce_len'
2017-12-21 13:34:25 +01:00
Gaëtan Harter
29f5de38d1
Merge pull request #8288 from zhuoshuguo/gnrc_lwmac_revise_doc_brief
gnrc_lwmac: revise brief description.
2017-12-20 13:46:34 +01:00
Gaëtan Harter
5e22f61cda sys/crypto/ccm: fix docstring value for 'nonce_len'
From RFC3610 - 2.1.2:

    A nonce N of 15-L octets
    (where L: Number of octets in length field)
2017-12-19 18:24:44 +01:00
Martine Lenders
2f78a0cc7c
Merge pull request #8281 from zhuoshuguo/gnrc_gomach_add_description
gnrc_gomach: add a brief description of GoMacH's features.
2017-12-19 15:20:14 +01:00
zhuoshuguo
56d5a02631 gnrc_lwmac: revise doc's brief naming. 2017-12-19 15:10:30 +01:00
zhuoshuguo
f8b1583737 gnrc_gomach: add a brief description of GoMacH's features. 2017-12-19 14:56:01 +01:00
Martine Lenders
ac99782d53
Merge pull request #8279 from zhuoshuguo/gnrc_gomach_add_allo_slot_limit
gnrc_gomach: add flexible number limit for allocating slots.
2017-12-19 12:33:02 +01:00
17ac0fa3a7
Merge pull request #8101 from miri64/gnrc_netif2/opt/flag-checkers
gnrc_netif: assume flag settings on compile time
2017-12-19 12:10:25 +01:00
Martine Lenders
7b5a42ba58
gnrc_netif: assume flag settings on compile time 2017-12-19 12:04:36 +01:00
zhuoshuguo
0c53762a1f gnrc_gomach: address comment. 2017-12-19 11:37:48 +01:00
Martine Lenders
a0aac0c971
Merge pull request #8282 from zhuoshuguo/gnrc_lwmac_revise_doc_naming
gnrc_lwmac: revise LWMAC's doc naming.
2017-12-19 11:09:31 +01:00
zhuoshuguo
28f266eaa6 gnrc_lwmac: revise doc naming. 2017-12-19 10:55:56 +01:00
smlng
800345b17e net: fix output in gnrc_pktdump for ccnl 2017-12-19 10:37:05 +01:00
zhuoshuguo
a98c3f0d31 gnrc_gomach: add number limit for allocated slots. 2017-12-19 10:18:51 +01:00
tobhe
7af07bacff random: added random_bytes function 2017-12-19 09:39:55 +01:00
Martine Lenders
2e93ba1c50
doc: Fix 'must not'/'may not' wording
I applied the following terminology and changed the wording in the doc
accordingly:

* must not: If the parameter is of the value it *must not* be it either
  hits an assert or crashes the system.
* may not: The value can be that value, but the function will return an
  error.
2017-12-19 09:00:12 +01:00
Martine Lenders
16013413be
Merge pull request #7592 from aabadie/loramac_definitions
sys/net: add some definitions for loramac
2017-12-18 20:30:25 +01:00
0512ac5f9c sys/net: add some definitions for loramac 2017-12-18 18:26:16 +01:00
Martine Lenders
16374d0588
gnrc_netif: provide helper functions for NETOPT_IPV6_(ADDR|GROUP)
Since especially the setter for `NETOPT_IPV6_ADDR` and the getter for
both `NETOPT_IPV6_ADDR` and `NETOPT_IPV6_GROUP` isn't that obvious, I
decided to provided a helper function for those `gnrc_netapi_get/_set`
operations.
2017-12-18 17:06:55 +01:00
Martine Lenders
8a058d32f9
gnrc_netif: pass up returned error of internal function
If there is no space left on the interface, a user should be notified
about that when using `gnrc_netapi_set()`
2017-12-18 17:01:17 +01:00
3a572d82cd
Merge pull request #8252 from miri64/gnrc_netif/api/rename-ipv6_addr
gnrc_netif: rename IPv6 address "setters"
2017-12-18 17:00:31 +01:00
Sebastian Meiling
c24e87e47d
Merge pull request #8250 from kb2ma/gcoap/remote_in_request
net/gcoap: Track remote endpoint for all requests
2017-12-18 13:17:27 +01:00
Ken Bannister
062bc15f00 net/gcoap: Track remote endpoint for all requests 2017-12-18 06:24:58 -05:00
7727871923 sys/auto_init/saul: provide saul adaption to lis3mdl 2017-12-14 18:18:34 +01:00
d4d18d99af sys/shell: adapt ifconfig to work with sx127x devices 2017-12-14 16:13:39 +01:00
5cf71e3096 sys/net/netopt: add NETOPT_CHANNEL_FREQUENCY option 2017-12-14 15:01:09 +01:00
Joakim Nohlgård
599ad3784c
Merge pull request #7345 from OTAkeys/pr/spiffs_statvfs
pkg/spiffs: implement statvfs and improve doc
2017-12-14 11:37:53 +01:00
PeterKietzmann
70810ae697 sys/netif: include release of iovec in gnrc_netif_raw 2017-12-13 17:29:10 +01:00
Martine Lenders
dbc577466e
Merge pull request #8256 from PeterKietzmann/pr_netif_raw_pkt_release
sys/netif: add missig pkt release in gnrc_netif_raw
2017-12-13 16:27:28 +01:00
PeterKietzmann
6295e4a7c9 sys/netif: add missig pkt release in gnrc_netif_raw 2017-12-13 15:44:39 +01:00
PeterKietzmann
4bd1d0ec9f shell/netif: extend set state option 2017-12-13 15:26:03 +01:00
Martine Lenders
2ae30cf582 gnrc_netif: rename IPv6 address "setters"
This renames the following functions

* `gnrc_netif_ipv6_addr_add()`
* `gnrc_netif_ipv6_addr_remove()`
* `gnrc_netif_ipv6_group_join()`
* `gnrc_netif_ipv6_group_leave()`

by appending the suffix `_internal`.

\## Reasoning

I'd like to provide a helper function for the *public* equivalent using
`gnrc_netapi_set()`, and those names are to nice to not be taken for
those.

\## Procedure
I used a combination of `git grep` and `sed` to do this and fixed the
alignment in the result of some cases by hand.

```sh
git grep --name-only "\<gnrc_netif_ipv6_\(addr\|group\)_\(add\|remove\|join\|leave\)\>" | \
        xargs sed -i 's/\<gnrc_netif_ipv6_\(addr\|group\)_\(add\|remove\|join\|leave\)/\0_internal/g'
```
2017-12-13 13:50:39 +01:00
Martine Lenders
01a82c870e
Merge pull request #8237 from miri64/doc/fix/nanocoap-group
nanocoap: fix doxygen grouping
2017-12-12 10:51:19 +01:00
Hauke Petersen
e9334e6d2d sys/timex: make NS_PER_US unsigned 2017-12-12 07:51:39 +01:00
Martine Lenders
93cb169c1f
Merge pull request #8235 from zhuoshuguo/gnrc_gomach_beacon_length_limit
gnrc_gomach: add sender ID number limit in beacon packet.
2017-12-11 16:17:47 +01:00
Martine Lenders
5a7d97635a
nanocoap: fix doxygen grouping
The doxygen group for the networking module is `net`, not `sys_net`.
By using `sys_net` nanocoap appears in the [module
root](https://doc.riot-os.org/modules.html) of the documentation.
2017-12-11 15:50:17 +01:00
Martine Lenders
22da59b40a
Merge pull request #7437 from cgundogan/pr/ccn-lite_v2
pkg: ccn-lite: adapt to v2
2017-12-11 13:47:27 +01:00
zhuoshuguo
cebc995ec3 gnrc_gomach: add sender ID number limit in beacon packet. 2017-12-11 11:31:39 +01:00
0accd367bc
Merge pull request #8159 from aabadie/pr/auto_init_sx127x
sys/auto_init: add auto init implementation for sx127x radio devices
2017-12-10 16:28:31 +01:00
400dccfaa1 sys/net/netopt: remove unused NETOPT_DEVICE_MODE 2017-12-09 20:06:57 +01:00
Vincent Dupont
43a902b1ab sys/fmt: fix overflow in fmt_u32_dec()
If the value was 10 digits long it caused an overflow in the multiply loop.
The case is now tested before looping over.
2017-12-07 17:48:05 -08:00
Martine Lenders
49c9d60724
gnrc_netapi: make doc a little more consistent
Throughout the documentation `gnrc_nettype_t` is referred to as a
"protocol type". The documentation for the functions
`gnrc_netapi_dispatch_*()` that were added later only refer to it as
"type".

This fix changes those to "protocol type" to make this clearer in the
context of these functions and unify it with the rest of the
documentation.
2017-12-06 18:10:10 +01:00
Martine Lenders
7745060ad9
Merge pull request #8209 from bergzand/pr/netifeth_oddebug
gnrc_netif: Fix compile errors when debug is enabled
2017-12-05 16:28:22 +01:00
039bdf2aa6
gnrc_netif: Fix debug printing in ieee802154 2017-12-05 14:49:48 +01:00
ef8222e4bd
gnrc_netif: Include od when debugging 2017-12-05 14:48:02 +01:00
Martine Lenders
5bdf3670e3
gnrc_ipv6: fix packet snip switch-up 2017-12-05 12:57:50 +01:00
40f43671bf sys/auto_init: enable sx127x auto init 2017-12-01 18:09:49 +01:00
Cenk Gündoğan
b6581289a2 pkg: ccn-lite: adapt to v2 2017-12-01 16:14:27 +01:00
3367840fa2 sys/net/nanocoap: use submodules 2017-12-01 12:55:45 +01:00
84bc849014 sys: net: nanocoap: ignore Uri-Host option 2017-12-01 12:55:45 +01:00
7a636cb8e8 sys/net/gcoap: adapt to in-tree nanocoap 2017-12-01 12:55:45 +01:00
16bdbe5d32 sys: net: add nanocoap 2017-12-01 12:55:44 +01:00