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

2189 Commits

Author SHA1 Message Date
e7df513567 gcoap: fix resource separator inserting 2017-09-20 11:33:15 +02:00
smlng
d4e95d987b doc: fix typos 2017-09-06 08:49:05 +02:00
Joakim Nohlgård
065bc62e0a netdev: Make set() value parameter const void * 2017-08-25 13:41:19 +02:00
426e978972 rpl: Sort list of parents 2017-08-22 16:03:16 +02:00
Martine Lenders
9ea1c6e7c8 Merge pull request #7481 from gebart/pr/netopt-csma-be
netopt: add NETOPT_CSMA_MINBE, NETOPT_CSMA_MAXBE
2017-08-17 20:03:34 +02:00
Joakim Nohlgård
b5984d2855 Merge pull request #7447 from bergzand/netopt/tx-retries
netopt: Add option for retrieving number of retransmissions
2017-08-17 17:25:58 +02:00
c33eb2b277 netopt: add NETOPT_TX_RETRIES_NEEDED 2017-08-17 16:47:20 +02:00
Joakim Nohlgård
83ab722e22 netopt: Add NETOPT_CSMA_MAXBE, NETOPT_CSMA_MINBE 2017-08-17 16:37:19 +02:00
Joakim Nohlgård
8415c4eebc gnrc_icmpv6: Clean up redundant conditional debug statement 2017-08-09 16:27:30 +02:00
Hauke Petersen
8908cebe42 net/gcoap: renamed source folder s/coap/gocap/ 2017-08-08 16:39:48 +02:00
Hauke Petersen
8f577eca4c net/gcoap: add Uri-Query handling for requests 2017-08-08 16:22:05 +02:00
Hauke Petersen
32ab8cf724 net/gcoap: expose creation of resource list to API
Creating the resource list is useful outside the /.well-known/core
handler, e.g. for the registration to resource directories.
2017-08-08 16:00:15 +02:00
Hauke Petersen
2290a9f69b net/gcoap: added remote sock ep to resp handler cb
When receiving a response to a request send our earlier, it is in
some cases essential, to know something about who send the reponse.
This is needed for example when sending requests to multicast
addresses to be able to react to different incoming responses.
2017-07-31 11:11:06 +02:00
Hauke Petersen
36322e95b7 net/gcoap: collection of simple fixes (#7413)
* net/gcoap: fixed request state when getting a resp

The request state should be set to GCOAP_MEMO_RESP before calling
the response handler in case we actually go a response...

* net/gcoap: make test for 0.00 code more efficient

This optimization saves the computation of the code and compares
the raw field to `0`.
2017-07-28 14:15:17 +02:00
Tobias Heider
3b5860451c gnrc/sock: fix fallthrough warning (#7403)
* gnrc/sock: fix fallthrough warning

* gnrc/sock: added spaces around "Fall Through."
2017-07-25 21:12:30 +02:00
Martine Lenders
d9bb94eff8 Merge pull request #7183 from miri64/gnrc_pktbuf/enh/fix-common-module
gnrc_pktbuf: move common auxiliary functions to common module
2017-07-15 17:07:26 +02:00
b80c249d2c sys/netopt: add new enum types for LoRa 2017-06-30 18:59:49 +02:00
Hauke Petersen
91ff52a897 net/emcute: use size_t for length comparisons 2017-06-28 22:52:34 +02:00
Hauke Petersen
ae367e5537 net/emcute: check value of length field before use 2017-06-28 22:51:39 +02:00
Sebastian Meiling
9ce9dd601c Merge pull request #6554 from zhuoshuguo/lwmac_retry
LWMAC:  A simple duty cycling 802.15.4 MAC protocol (2nd try).
2017-06-26 12:50:44 +02:00
e71bf07a68 Merge pull request #7223 from kb2ma/gcoap/confirm_piggy_server
net/gcoap: Provide piggybacked ACK response to confirmable request
2017-06-24 21:47:37 +02:00
Ken Bannister
7c0374b975 Reject incoming empty message type as not handled yet 2017-06-22 12:57:34 -04:00
zhuoshuguo
e5d8dde920 gnrc_priority_queue: updated coding style. 2017-06-22 11:36:55 +02:00
Ken Bannister
19ba56b96f net/gcoap: Add server piggybacked ACK response to a CON request 2017-06-21 22:47:08 -04:00
zhuoshuguo
a54655890e LWMAC: a simple duty cycling 802.15.4 MAC protocol. 2017-06-21 16:40:04 +02:00
b70a4885f4 Merge pull request #7203 from zhuoshuguo/fix_gnrc_mac_coding_style
gnrc_mac: update coding style.
2017-06-21 15:02:39 +02:00
zhuoshuguo
83e1385683 gnrc_mac: updated coding style. 2017-06-19 10:15:41 +02:00
Ken Bannister
aa2f97c80f net/gcoap: Protect update to open requests with mutex. 2017-06-18 06:29:43 -04:00
Ken Bannister
24b21dbfbc net/gcoap: Protect message ID state with atomic updates.
Also changed semantics for storage of message ID, from last ID to next ID.
This change provides idiomatic use of the return value of the atomic
function, without other side effects on gcoap.
2017-06-18 06:16:15 -04:00
Martine Lenders
f51e4ca767
fixup! gnrc_pktbuf: move common auxiliary functions to common module 2017-06-15 15:15:02 +02:00
Martine Lenders
b32200e3ad gnrc_ipv6_nib: fix caching mechanism of neighbor cache 2017-06-15 11:40:46 +02:00
Martine Lenders
d8336c38b6
gnrc_pktbuf: move common auxiliary functions to common module
The packet buffer was originally designed to have a replaceable
back-end. This is why the actual module is called `gnrc_pktbuf_static`.
However, since than some auxiliary functions snuck into the static
back-end, which should go into the common module (which is a
pseudo-module at the moment).

This fix makes the `gnrc_pktbuf` pseudo-module an actual module and
moves the auxiliary functions to that module.
2017-06-14 12:24:56 +02:00
Cenk Gündoğan
72c3c9cf6a Merge pull request #6325 from miri64/gnrc_ipv6_nib/feat/internal
gnrc_ipv6_nib: initial import of internal NIB functions
2017-06-09 22:05:47 +02:00
Martine Lenders
e92f97cb12 gnrc_ipv6_nib: initial import of internal NIB functions 2017-06-09 21:52:37 +02:00
Martine Lenders
0b42721511 Merge pull request #7155 from zhuoshuguo/gnrc_mac_use_csma_sender
gnrc_mac: use csma_sender API when needed for csma transmission
2017-06-09 17:48:37 +02:00
zhuoshuguo
7565cd1d10 gnrc_mac: use software csma when needed. 2017-06-09 16:45:24 +02:00
Martine Lenders
1a4c01a912 Merge pull request #7138 from gebart/pr/netopt-ed-level
netopt: Add NETOPT_LAST_ED_LEVEL
2017-06-09 10:34:33 +02:00
BytesGalore
89716729c8 Merge pull request #7161 from cgundogan/pr/trickle_enhancements
trickle: enhancements
2017-06-09 09:15:54 +02:00
Cenk Gündoğan
04d89d3381 rpl: adjust to trickle enhancements 2017-06-09 09:03:24 +02:00
Joakim Nohlgård
533542314d netopt: Add NETOPT_LAST_ED_LEVEL 2017-06-09 07:14:58 +02:00
Cenk Gündoğan
6add982d3f rpl: send dis near parent timeout 2017-06-08 21:46:06 +02:00
Cenk Gündoğan
935292ce44 gcoap: make stack size configurable 2017-06-07 08:20:35 +02:00
Hauke Petersen
7ba22cfbf8 net/gcoap: added some additional debug output 2017-06-01 11:13:15 +02:00
Cenk Gündoğan
3921fc86a7 Merge pull request #6901 from BytesGalore/rpl_drop_dao_ack_on_mc
rpl: drop DAO-ACK when received via multicast
2017-05-30 21:28:58 +02:00
BytesGalore
da38b77ba4 rpl: drop DAO-ACK when received on multicast 2017-05-30 18:05:00 +02:00
Cenk Gündoğan
6065be76e1 ndp: warn gcc-7 about intentional fall-through
Since gcc-7 `Wimplicit-fallthrough` is activated by using `-Wextra`.
This leads to the following problem when compiling `gnrc_networking`:

```
RIOT/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c: In function ‘gnrc_ndp_internal_set_state’:
RIOT/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c:106:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
   t = ipv6_iface->reach_time;
  ~~^~~~~~~~~~~~~~~~~~~~~~~~
RIOT/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c:109:9: note: here
case GNRC_IPV6_NC_STATE_DELAY:
         ^~~~
```

The fall-through in this code is intentional. There are several ways to
warn the comiler about such intentional fall-throughs, which include
e.g. attributed empty statements (`__attribute__ ((fallthrough));`).
I don't like tis approach however. The best way would probably be to
remove this fall-through from the code. However, to keep the diff
minimal, and since ndp will change in the future, I went for warning
the compiler using comments.

The compiler checks comments for several *fall through* regexs to
decide whether a fallthrough was intentional or not.

You can read more about this gcc option in [1]. A note about
fallthrough comment regexs is at the bottom of this article.

[1] https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
2017-05-30 14:23:37 +02:00
Hauke Petersen
bb90e293a2 net/gcoap: make input parameters const 2017-05-26 16:34:40 +02:00
Martine Lenders
d4693648ba Merge pull request #7095 from kaspar030/add_headerguard_check_script
dist: tools: add headerguard check script
2017-05-24 18:08:29 +02:00
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
Ken Bannister
9d37be2729 gcoap: Add server-side Observe registration and notifications. 2017-05-23 17:55:04 -04:00