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

3531 Commits

Author SHA1 Message Date
Oleg Hahm
4824a45c8a Merge pull request #4732 from cgundogan/pr/rpl/pio_control
rpl: make PIOs in DIOs configurable and send them out always or never
2016-02-11 23:53:51 +01:00
Oleg Hahm
30e9bddee5 Merge pull request #4790 from OlegHahm/ping6_netif_init
shell ping6: initialize netif header
2016-02-11 22:14:02 +01:00
Cenk Gündoğan
27a4770601 gnrc_ipv6: make the DEBUG output useful 2016-02-11 16:46:16 +01:00
Joakim Nohlgård
0e316c3159 sys/net/gnrc/zep: Remove unused (static) getter function 2016-02-11 15:13:41 +01:00
Oleg Hahm
141ffac487 Merge pull request #4777 from OlegHahm/netif_retrans
shell: netif retransmissions
2016-02-11 15:11:19 +01:00
Oleg Hahm
3b46ddf0f4 shell ping6: initialize netif header 2016-02-11 14:52:25 +01:00
BytesGalore
95de31b4b9 Revert "doc crypto: add word on using CFLAGS"
This reverts commit 30ab688339.
2016-02-11 13:24:07 +01:00
BytesGalore
30ab688339 doc crypto: add word on using CFLAGS 2016-02-11 13:06:51 +01:00
Oleg Hahm
825ba72751 doc crypto: fixed typo and improved example 2016-02-11 11:44:57 +01: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
e8a1fab07d gnrc_pkt: provide type search function 2016-02-11 01:05:02 +01:00
Cenk Gündoğan
03f34927cd pktbuf: do not inline gnrc_pktbuf_remove_snip 2016-02-10 16:38:40 +01:00
Oleg Hahm
ea0a913d71 shell: reorder netif output 2016-02-09 17:57:03 +01:00
Oleg Hahm
514cbccfa3 shell: add option for link layer retransmissions 2016-02-09 17:54:00 +01:00
Yonezawa-T2
f638d68ebb rbuf: drop overlapped fragment only if offset or size differs from previous one.
https://tools.ietf.org/html/rfc4944#section-5.3 says:

> If a link fragment that overlaps another fragment is received, as
> identified above, and differs in either the size or datagram_offset
> of the overlapped fragment, the fragment(s) already accumulated in
> the reassembly buffer SHALL be discarded.  A fresh reassembly may be
> commenced with the most recently received link fragment.
2016-02-09 11:15:22 +09:00
8cf5ffdabc Merge pull request #4332 from marshall/customSyscalls
cpu/cortexm_common: enable custom newlib syscalls w/ newlib_syscalls_X
2016-02-08 21:46:16 +01:00
Hauke Petersen
f3ac84d43a drivers: s/CPUID_ID_LEN/CPUID_LEN/ 2016-02-08 11:10:59 +01:00
Yonezawa-T2
13a49efce6 shell: rewrote to use new ipv6_addr_split function 2016-02-08 12:43:22 +09:00
kYc0o
66dab58b8a Merge pull request #4438 from kaspar030/add_eth_over_serial
drivers: add ethernet over serial driver
2016-02-08 00:09:03 +01:00
9e3e485ec0 drivers: net: add ethos (ethernet over serial) driver 2016-02-07 19:15:14 +01:00
Marshall Culpepper
160da3fab1 cpu/cortexm_common: enable custom newlib syscalls w/ newlib_syscalls_X 2016-02-06 08:20:42 -05:00
Oleg Hahm
b377491d7c Merge pull request #4679 from BytesGalore/add_hmac_sha256
hashes/sha256: initial commit for hmac-sha256 computation
2016-02-06 12:36:02 +01:00
BytesGalore
b1537bc17c hashes/sha256: initial commit for hmac-sha256 computation 2016-02-06 08:11:37 +01:00
Martine Lenders
0e40350d81 Merge pull request #4759 from kaspar030/fix_gnrc_netdev2_ipv6_multicast
sys: net: gnrc_netdev2_eth: fix ethernet multicast MAC address creation
2016-02-05 23:37:47 +01:00
0fc19f723d sys: net: gnrc_netdev2_eth: fix ethernet multicast MAC address creation 2016-02-05 23:20:33 +01:00
951f1300a0 sys: shell: ping6: require device parameter for link-local addresses 2016-02-05 18:13:34 +01:00
44e985bf8c sys: net: ipv6: add print_ipv6_addr() 2016-02-05 14:06:36 +01:00
b9c97d86c2 sys: net: add ipv6 split prefix/interface from address functions 2016-02-05 13:24:45 +01:00
Hauke Petersen
84b44f03dd Merge pull request #4740 from cgundogan/pr/saul/pull_modes
saul: make pull-up/pull-down mode configurable
2016-02-04 16:34:40 +01:00
Oleg Hahm
6ace8234cf Merge pull request #4715 from OlegHahm/crypto_to_hashes
hashes: cleanup
2016-02-04 15:46:41 +01:00
Oleg Hahm
3f645884a4 crc: rename checksum to CRC 2016-02-04 14:58:34 +01:00
Oleg Hahm
6823b47623 doc: add starting page for hash functions 2016-02-04 14:58:34 +01:00
Oleg Hahm
906e2176a9 hashes: some improvements on documentation 2016-02-04 14:58:34 +01:00
Oleg Hahm
809217cf26 checksum: move doc page from include to code path 2016-02-04 14:58:34 +01:00
Oleg Hahm
51db509f7c sha256: move from crypto to hashes 2016-02-04 14:58:34 +01:00
Cenk Gündoğan
b860ad3715 saul: make pull-up/pull-down mode configurable 2016-02-04 14:57:00 +01:00
Cenk Gündoğan
3a16d021a6 conn: udp: doc fix 2016-02-04 10:51:47 +01:00
Cenk Gündoğan
b654dc3167 rpl: doc: add configuration hints 2016-02-03 13:32:26 +01:00
Oleg Hahm
ca8dbbac20 Merge pull request #4714 from OlegHahm/6lo_nd_lookup
6lo nd: prefer NCEs over FIB entries
2016-02-03 11:11:49 +01:00
Cenk Gündoğan
d8f30150b4 rpl: shell: adjust style of commands output 2016-02-03 09:00:30 +01:00
Cenk Gündoğan
73fac82b58 rpl: shell: don't compile PIO code dependent on CFLAGS 2016-02-03 08:59:51 +01:00
Cenk Gündoğan
288212af36 rpl: shell: make PIO transmission configurable via shell 2016-02-03 08:59:27 +01:00
Cenk Gündoğan
11e2ae20b0 rpl: make PIO transmission configurable 2016-02-03 07:32:40 +01:00
Cenk Gündoğan
2242970cad rpl: don't change status of PIO transmissions 2016-02-03 07:29:36 +01:00
Cenk Gündoğan
50aff7fca0 rpl: unify requested option flags into one byte 2016-02-03 07:13:24 +01:00
Cenk Gündoğan
cb68c01325 ipv6/nc: doc fix and removed unused macro 2016-01-30 15:26:49 +01:00
Oleg Hahm
ae086aeed1 IPv6: cosmetic improvement
New condition -> new line
2016-01-29 18:56:03 +01:00
Oleg Hahm
250c288929 6lowpan nd: prefer NCEs over FIB entries
If an address can be found in the neighbor cache, it should be used - whatever the FIB may return.
2016-01-29 18:56:03 +01:00
Hauke Petersen
35eb99a46e Merge pull request #3984 from kaspar030/simplify_reboot
core: cpu: sys: simplify reboot()
2016-01-29 14:24:08 +01:00
Martine Lenders
d87ed59e39 auto_init: disable DEBUG 2016-01-29 01:27:28 +01:00
BytesGalore
10ea1226bc gnrc/ipv6: add blacklisting of IPv6 addresses 2016-01-28 21:50:43 +01:00
Ludwig Knüpfer
1df395f364 Merge pull request #4647 from LudwigKnuepfer/pr/sys-checksum
sys/checksum: initial import including CRC16-CCITT
2016-01-28 18:11:35 +01:00
Oleg Hahm
ae8e0957cb Merge pull request #4705 from cgundogan/pr/ndp/pio_fix
ndp/internal: fix pio flags for rtr adv
2016-01-28 16:27:44 +01:00
Oleg Hahm
58eb00e867 Merge pull request #4709 from OlegHahm/remove_hash_string
sys: remove hash_string module
2016-01-28 16:12:51 +01:00
Cenk Gündoğan
11e7160b90 Merge pull request #4707 from BytesGalore/change_whitelist_use_memcpy
gnrc_ipv6/whitelist: switch assignment operation to `memcpy()`
2016-01-28 14:23:21 +01:00
Oleg Hahm
a57e77e46a sys: remove hash_string module
hash_string implements djb2 which is already part of `sys/hashes/`
2016-01-28 14:20:54 +01:00
Cenk Gündoğan
d58e1385b2 ndp/internal: fix pio flags for rtr adv 2016-01-28 14:03:19 +01:00
BytesGalore
2d1671473b gnrc_ipv6/whitelist: switch assignment operation to memcpy() 2016-01-28 06:23:31 +01:00
Ludwig Knüpfer
430b4aa600 sys/checksum: initial import including CRC16-CCITT
Adds a checksum module which includes an implementation "the CCITT"
variant of the CRC16 algorithm.
2016-01-27 19:28:05 +01:00
Oleg Hahm
dae4253618 Merge pull request #4519 from OlegHahm/fib_remove_superfluous_things
FIB: remove superfluous things
2016-01-27 16:12:08 +01:00
938ff5c5e7 core: cpu: sys: simplify reboot() 2016-01-27 13:30:01 +01:00
Martine Lenders
94bbd055a5 Merge pull request #4640 from cgundogan/pr/random/initval
sc_random: use a default seed if no xtimer is present
2016-01-27 02:20:11 +01:00
Oleg Hahm
a1ece30c55 fib: remove superfluous parameter 2016-01-26 23:52:18 +01:00
Cenk Gündoğan
d2555af269 sc_random.c: use a default seed if no xtimer is present 2016-01-26 23:28:18 +01:00
Martine Lenders
5ddcf09627 gnrc_ipv6_netif: don't advertise routers without GUAs 2016-01-26 23:25:07 +01:00
Martine Lenders
131cae626c Merge pull request #3362 from authmillenon/ng_neterr/feat/initial
[RFC] gnrc: initial import of an asynchronous error reporting API
2016-01-26 21:35:30 +01:00
Cenk Gündoğan
617796241e Merge pull request #4295 from authmillenon/gnrc_ipv6_nc/enh/l2addr-lookup
gnrc_ipv6_nc: introduce L2 address lookup function
2016-01-26 19:30:01 +01:00
Martine Lenders
d38a9db966 Merge pull request #4551 from authmillenon/sema/fix/post
sema: some API fixes
2016-01-26 19:12:41 +01:00
Oleg Hahm
a822271d09 Merge pull request #4374 from authmillenon/sema/fix/timer-pre-set
sema: pre-set timeout-timer for sema_wait_timed_msg()
2016-01-26 19:05:12 +01:00
Peter Kietzmann
4d7c068e0d Merge pull request #4267 from authmillenon/gnrc_pktbuf_static/enh/max_byte_counter
gnrc_pktbuf_static: add stat variable for maximum packet buffer byte
2016-01-26 18:45:49 +01:00
Oleg Hahm
3d494c8bf9 Merge pull request #3184 from authmillenon/ng_icmpv6_error/feat/init
gnrc_icmpv6_error: initial import
2016-01-26 18:23:54 +01:00
Martine Lenders
a23b9c3310 Merge pull request #4652 from Lotterleben/conn_documentation
conn: add more detailed documentation (WIP)
2016-01-26 18:09:36 +01:00
Lotte Steenbrink
be72f2c1cf conn: add more detailed documentation 2016-01-26 16:54:29 -08:00
Hauke Petersen
bc0a589886 Merge pull request #4680 from authmillenon/od/fix/nano-specs
od: fix for nano-specs
2016-01-26 18:09:17 +01:00
test
8d1f91f128 ndp: check for A flag in received PIO 2016-01-26 14:34:48 +01:00
Martine Lenders
da5abe1bcd gnrc_sixlowpan_nd: use gnrc_ipv6_nc_get_l2_addr() 2016-01-26 10:19:16 +01:00
Martine Lenders
0b787b9e02 gnrc_ndp_node: use gnrc_ipv6_nc_get_l2_addr() 2016-01-26 10:19:16 +01:00
Martine Lenders
0e0eef1273 gnrc_ipv6: use gnrc_ipv6_nc_get_l2_addr() 2016-01-26 10:19:15 +01:00
Martine Lenders
7b21f95df5 gnrc_ipv6_nc: introduce L2 address lookup function 2016-01-26 10:19:15 +01:00
Cenk Gündoğan
c8839b71d8 Merge pull request #4661 from Yonezawa-T2/rpl_propagete_prefix_route
gnrc_rpl_control_messages: propagete prefix route via DAO message
2016-01-25 15:51:52 +01:00
Martine Lenders
f99e9e0161 od: piggy-back style fixes 2016-01-24 23:51:41 +01:00
Martine Lenders
2173a33eab od: fix for nano-specs 2016-01-24 23:46:38 +01:00
Martine Lenders
da23ffe096 gnrc: initial import of an asynchroneous error reporting API 2016-01-23 16:42:19 +01:00
Martine Lenders
4d877c7bf7 gnrc_pktbuf_static: add stat variable for maximum packet buffer byte 2016-01-23 16:41:01 +01:00
Martine Lenders
96075ed2c1 sema: introduce static initializer 2016-01-23 16:38:56 +01:00
Martine Lenders
d5af07c759 sema: style fixes 2016-01-23 16:38:56 +01:00
Martine Lenders
632c9a2bd0 sema: harmonize sema_post return with rest of API 2016-01-23 16:38:55 +01:00
Martine Lenders
47a2df7423 sema: piggy-back some style fixes 2016-01-23 16:35:21 +01:00
Martine Lenders
1dc388fea0 sema: pre-set timeout-timer for sema_wait_timed_msg() 2016-01-23 16:35:21 +01:00
Martine Lenders
70c3d29036 gnrc_icmpv6_error: initial import 2016-01-23 16:04:05 +01:00
Oleg Hahm
e772ef5c39 shell: netif: initialize local variable 2016-01-21 15:00:59 +01:00
Yonezawa-T2
eaf2153681 gnrc_rpl_control_messages: propagete prefix route via DAO message 2016-01-21 11:11:38 +09:00
Thomas Eichinger
d60bfc0ae2 Merge pull request #4574 from haukepetersen/opt_stdiodefs
boards: use default values for STDIO defines
2016-01-20 11:48:46 +01:00
Cenk Gündoğan
40f5aeba8a Merge pull request #4414 from cgundogan/pr/rpl/fix_netapi_commands_handling
rpl: fix netapi commands handling
2016-01-13 09:09:33 +01:00
Yonezawa-T2
b37d6337bf shell: fixed ncache arguments parsing 2016-01-13 10:02:36 +09:00
Cenk Gündoğan
7269cdbf03 rpl: fix netapi commands handling 2016-01-11 18:30:29 +01:00
Oleg Hahm
08ada181b3 Merge pull request #4588 from OlegHahm/posix_socket_sa_family_type
posix socket: align size of sa_family_t with Linux
2016-01-08 15:12:52 +01:00
Johann Fischer
2f94d669d7 gnrc_pktbuf_static.c: fix overflow in gnrc_pktbuf_realloc_data
This patch fixes overflow, which is caused by
(pkt->size - aligned_size). This happens if pkt->size and
new size are unaligned and the difference
between pkt->size and new size is less than four.
2016-01-07 15:17:52 +01:00
Oleg Hahm
35074a6ad1 posix socket: align size of sa_family_t with Linux
Linux defines `sa_family_t` as `unsigned short int`. In order to be compatible with Linux code, RIOT should define it the same way.
2016-01-07 11:12:35 +01:00
Martine Lenders
94e4a08f45 Merge pull request #4447 from Yonezawa-T2/fix_gnrc_bugs
fixes several bugs on GNRC network stack
2016-01-07 03:38:11 +01:00
Yonezawa-T2
cf35763584 fib: add debug outputs 2016-01-07 10:12:46 +09:00
Yonezawa-T2
c9c83c7dc7 nc: cancel timer set by gnrc_ndp_rtr_sol_handle in gnrc_ipv6_nc_remove. 2016-01-07 10:12:46 +09:00
Yonezawa-T2
542e045bba gnrc_ipv6_netif: fixed crash when ENABLE_DEBUG is 1.
When ENABLE_DEBUG is 1, `out` is dereferenced unconditionally, but
`_parse_options` in `gnrc_rpl_control_messages.c` calls it with NULL.

Clarified `out` must not NULL and fixed `_parse_options`.
2016-01-07 10:08:37 +09:00
Yonezawa-T2
5cb904b57e gnrc_sixlowpan_nd: fixed crash on gnrc_sixlowpan_nd_next_hop_l2addr.
When `gnrc_ndp_node_next_hop_l2addr` cannot resolve L2 address, it creates a
temporary neighbor cache entry with interface `KERNEL_PID_UNDEF` (unless the
interface is already known) to send a neighbor solicitation. When another packet
directed to the same address is going to sent before receiving a neighbor
advertisement, `gnrc_sixlowpan_nd_next_hop_l2addr` gets the temporary neighbor
cache entry and calls `gnrc_ipv6_netif_get` with `KERNEL_PID_UNDEF`, resulting
get a `NULL`. We must check `NULL` before dereference it.

FYI, both `gnrc_ndp_node_next_hop_l2addr` and
`gnrc_sixlowpan_nd_next_hop_l2addr` are enabled when
`gnrc_sixlowpan_border_router_default` module is enabled with `GNRC_NETIF_NUMOF`
is greater than 1:

gnrc_sixlowpan_border_router_default
→ gnrc_ipv6_router_default
→ gnrc_ndp_router (if GNRC_NETIF_NUMOF > 1)
→ gnrc_ndp_node
→ gnrc_ndp_node_next_hop_l2addr is called from _next_hop_l2addr

gnrc_sixlowpan_border_router_default
→ gnrc_sixlowpan_nd_border_router
→ gnrc_sixlowpan_nd_router
→ gnrc_sixlowpan_nd
→ gnrc_sixlowpan_nd_next_hop_l2addr is called from _next_hop_l2addr
2016-01-07 10:02:49 +09:00
Martine Lenders
86bf9ae4c4 Merge pull request #4584 from BytesGalore/quickfix_default_route_shell
shell fib: recognize the default route as net prefix
2016-01-06 15:33:44 +01:00
BytesGalore
b8ba3f589f shell fib: recognize the default route as net prefix 2016-01-06 15:51:44 +01:00
Cenk Gündoğan
c7dec59241 Merge pull request #4580 from authmillenon/shell/fix/nano
shell: commands: fix selective outputs for nano specs
2016-01-06 14:23:27 +01:00
Martine Lenders
a4a8e83ac7 Merge pull request #4446 from Yonezawa-T2/neighbor_discovery_option_for_6lowpan
gnrc_ndp: fixed ND Option handling for 6LoWPAN
2016-01-06 14:03:43 +01:00
Yonezawa-T2
639f7dc020 gnrc_ndp: fixed ND Option handling for 6LoWPAN
The forms of the Source/Target Link-layer Address option for 6LoWPAN are defined
in RFC 4944 Section 8:
https://tools.ietf.org/html/rfc4944#section-8
The address is 16 bit if length is 1, 64 bit if length is 2.
2016-01-06 09:38:47 +09:00
Martine Lenders
950b80cce7 shell: commands: fix nano specs issues for ifconfig command 2016-01-05 23:17:07 +01:00
Martine Lenders
921f9d440c shell: commands: fix nano specs issues for ping6 command 2016-01-05 23:17:07 +01:00
DipSwitch
6c521916cd Merge pull request #4559 from thomaseichinger/pr/fix_tftp_formating
tftp: fix formatting warnings/errors
2016-01-05 20:26:40 +01:00
Thomas Eichinger
a43cbd17ff tfpt: fix formating warnings/errors 2016-01-05 14:59:34 +01:00
Hauke Petersen
e071beab08 sys/uart_stdio: cleanup
- removed duplicate include
- changed default device from '0' to UART_DEV(0)
2016-01-05 12:08:31 +01:00
Cenk Gündoğan
e79a471931 Merge pull request #4533 from Yonezawa-T2/gnrc_add_missing_unlock
gnrc_ndp_internal: add missing unlock when the pktbuf is full
2016-01-04 16:05:17 +01:00
Yonezawa-T2
38d3dc725b gnrc_ndp_internal: add missing unlock when the pktbuf is full
Squashed a commit by Cenk Gündoğan <cnkgndgn@gmail.com>.
2015-12-25 11:08:28 +09:00
Cenk Gündoğan
7d628514ab sixlowpan: iphc: fix dependencies for udp and nhc 2015-12-23 13:57:55 +01:00
Cenk Gündoğan
237706dd9e sixlowpan: iphc: remove dispatch and assign result to pkt 2015-12-22 20:54:39 +01:00
Martine Lenders
21beaa7529 gnrc_udp: fix false assumed packet order 2015-12-22 17:14:33 +01:00
Martine Lenders
d342d35dd8 gnrc_sixlowpan: Fix IPHC/NHC packet order problem 2015-12-22 17:14:33 +01:00
Oleg Hahm
b7a7578e21 Merge pull request #4507 from authmillenon/gnrc_ipv6/fix/no-order-assumptions
gnrc_ipv6: make no pre-assumption about any marked headers
2015-12-22 11:18:47 +01:00
Oleg Hahm
83649ddb59 Merge pull request #4531 from Yonezawa-T2/gnrc_avoid_infinite_loop
sixlowpan: fixed infinite loop
2015-12-22 11:11:55 +01:00
Martine Lenders
34974abac2 Merge pull request #4534 from Yonezawa-T2/gnrc_off_by_1_overrun
gnrc_ipv6_netif: fixed buffer overrun
2015-12-22 10:29:57 +01:00
Martine Lenders
5b4ef433a8 Merge pull request #4532 from Yonezawa-T2/gnrc_safe_no_routers
gnrc_sixlowpan_nd: fixed crash when there are no routers
2015-12-22 09:15:49 +01:00
Yonezawa-T2
08ba1f8640 gnrc_ipv6_netif: fixed buffer overrun 2015-12-22 11:30:05 +09:00
Yonezawa-T2
fe0e58dce1 gnrc_sixlowpan_nd: fixed crash when there are no routers 2015-12-22 11:29:57 +09:00
Yonezawa-T2
9108d2779d sixlowpan: fixed infinite loop
When prefix entry is resued, it may form a looped list, results in infinite loop
in gnrc_ndp_internal_send_rtr_adv.
This patch avoids looped lists.
2015-12-22 11:29:04 +09:00
Johann F
adfcef4f7b gnrc_ndp.c: parsing of SLLAO in gnrc_ndp_rtr_sol_handle
Do not set the link-layer address if no SLLAO was included
 into the router solicitation.
2015-12-19 01:16:24 +01:00
Martine Lenders
68309045ed gnrc_ipv6: make no pre-assumption about any marked headers 2015-12-18 18:31:24 +01:00
Cenk Gündoğan
079f66908b rpl: minor doc fix 2015-12-16 09:42:37 +01:00
Oleg Hahm
c811380440 Merge pull request #4468 from cgundogan/pr/posix_sockets/close_fd_fix
posix_sockets: fix overflowing fd in close()
2015-12-12 12:13:51 +01:00
Cenk Gündoğan
0ddfffc0c2 posix_sockets: fix overflowing fd in close() 2015-12-12 04:24:23 +01:00
Cenk Gündoğan
6f92b056f9 posix_sockets: do not use the address of best_match 2015-12-12 02:51:00 +01:00
Thomas Eichinger
56d61d4be7 Merge pull request #4444 from Yonezawa-T2/fix_clang_warnings_for_os_x
fix warnings/errors thrown by clang on OS X
2015-12-10 10:51:47 +01:00
Cenk Gündoğan
6e332dc0b5 Merge pull request #4440 from OlegHahm/ccnl_first_fixes
CCN-Lite: first fixes
2015-12-10 08:04:28 +01:00
Oleg Hahm
759ec83514 shell ccnl: properly initialize buffers 2015-12-10 07:23:22 +01:00
Oleg Hahm
395141fd22 shell ccnl: break & print after receiving content 2015-12-10 07:23:22 +01:00
Yonezawa-T2
c36766a31f OSX: fix warnings/errors thrown by clang on OS X
gnrc_ipv6_nc, gnrc_sixlowpan, gnrc_netdev2_eth, gnrc_ipv6, xbee, sixlowpan,
sc_gnrc_6ctx
2015-12-10 11:23:56 +09:00
Cenk Gündoğan
76195bf48b doxygen: gnrc: fix typos 2015-12-09 13:18:23 +01:00
Martine Lenders
877e070112 Merge pull request #4415 from cgundogan/pr/gnrc/doc
gnrc: enhance documentation
2015-12-09 12:10:04 +01:00
Oleg Hahm
a3bd67da2b shell ccnl: PRNG should be initialized only once
Initialization of PRNG is taken care of by CCN-Lite.
2015-12-09 00:12:37 +01:00
Cenk Gündoğan
c21fbe9574 doxygen: use uppercase GNRC 2015-12-08 21:01:39 +01:00
Cenk Gündoğan
0b77b259ef gnrc: enhance documentation 2015-12-08 21:01:39 +01:00
Oleg Hahm
693d438068 Merge pull request #4189 from jfischer-phytec-iot/wip@nhc-udp
gnrc_sixlowpan_iphc.c: add nhc udp encoding and decoding
2015-12-08 16:49:25 +01:00
Oleg Hahm
e8ed9fbe83 Merge pull request #4386 from OlegHahm/posix_sockets_stream_fixes
POSIX sockets: implicit bind for connect()
2015-12-08 16:35:29 +01:00
Oleg Hahm
e062a497e9 Merge pull request #4425 from authmillenon/doc/enh/netapi
doc: gnrc netapi: make get/set documentation clearer
2015-12-08 16:21:06 +01:00
Johann Fischer
c6ab57f468 gnrc_udp.c adapt for nhc udp encoding and decoding 2015-12-08 14:50:25 +01:00
Johann Fischer
a85d50b9d1 gnrc_sixlowpan_iphc.c: add nhc udp decoding and encoding
This patch adds UDP Header Compression and Decompression as
specified in https://tools.ietf.org/html/rfc6282#section-4.3
UDP NHC module will be included only if UDP is used.
2015-12-08 14:50:25 +01:00
Johann Fischer
199789ffbc gnrc_sixlowpan.c: fix warning if GNRC_SIXLOWPAN_FRAG module not used 2015-12-08 13:59:15 +01:00
Cenk Gündoğan
338acc0b7c Merge pull request #4200 from haukepetersen/add_driver_enc28j60
drivers: added support for the enc28j60 ethernet chip
2015-12-08 13:17:51 +01:00
Martine Lenders
15220b26ad Merge pull request #4381 from PeterKietzmann/sixlo_frag_unblocking
gnrc_sixlowpan_frag: Make fragmentation non-blocking
2015-12-08 13:13:48 +01:00
Oleg Hahm
e07c98ea88 Merge pull request #4274 from OlegHahm/ccnl_reimport
CCN-lite reimport
2015-12-08 12:11:33 +01:00
Oleg Hahm
11add4d8fd sockets: implicit bind for connect()
According to
http://pubs.opengroup.org/onlinepubs/009695399/functions/connect.html
for a "socket [that] has not already been bound to a local address,
connect() shall bind it to an address which, unless the socket's address
family is AF_UNIX, is an unused local address."
2015-12-08 11:57:20 +01:00
Hauke Petersen
692e22eb18 sys/auto_init: added initialization for enc28j60 2015-12-08 11:51:18 +01:00
Hauke Petersen
cf53aeddd8 Merge pull request #4382 from haukepetersen/rm_core_flagsh
core: move thread flags from flags.h to thread.h
2015-12-08 11:36:43 +01:00
Oleg Hahm
13958178f5 shell: move ccnl commands from example to shell 2015-12-08 11:27:03 +01:00
Oleg Hahm
666b347eeb net: ETH_ALEN as alias for ETHERNET_ADDR_LEN 2015-12-08 11:27:03 +01:00
Oleg Hahm
796cb58a8a net: added NDN ethertype 2015-12-08 11:27:03 +01:00
Oleg Hahm
3fddead681 net: added packet header 2015-12-08 11:27:03 +01:00
Oleg Hahm
e257563bd3 posix: added packet address family 2015-12-08 11:27:03 +01:00
Oleg Hahm
7e26470288 gnrc nettype: added a CCN nettypes 2015-12-08 11:27:03 +01:00
Oleg Hahm
0250d62509 Merge pull request #4358 from OlegHahm/eliminate_pedantic_errors
Eliminate pedantic errors
2015-12-08 02:05:30 +01:00
Hauke Petersen
41979b64cd sys: adapted to renamed THREAD FLAGS 2015-12-07 22:09:47 +01:00
Oleg Hahm
de9965adef sys: fix pedantic compiler warnings 2015-12-07 20:28:52 +01:00
Oleg Hahm
b87a0f12b0 arduino header: fix pedantic compiler warnings 2015-12-07 20:28:52 +01:00
PeterKietzmann
331fa34502 gnrc_sixlowpan_frag: msg based fragmentation 2015-12-07 17:49:02 +01:00
8c6f373b98 sys: fmt: fix converting "0" in fmt_u32_dec() 2015-12-07 16:42:39 +01:00
Martine Lenders
395706a4b9 doc: gnrc netapi: make get/set documentation clearer 2015-12-07 15:08:39 +01:00
Cenk Gündoğan
69a493a613 rpl: shell: only print the first 32 bits of the trickle intervals 2015-12-05 07:35:31 +01:00
Cenk Gündoğan
6abda39890 Merge pull request #4408 from cgundogan/pr/gnrc_conn/doc_fix
gnrc: remove dot from name
2015-12-04 18:13:01 +01:00
Oleg Hahm
66203fc813 Merge pull request #4407 from cgundogan/pr/gnrc_pkt/doc_fix
gnrc_pkt: Packets => Packet
2015-12-04 17:59:29 +01:00
Cenk Gündoğan
0f456e4f05 gnrc: remove dot from name 2015-12-04 17:56:16 +01:00
Cenk Gündoğan
59b0895280 gnrc_pkt: Packets => Packet 2015-12-04 17:46:10 +01:00
Thomas Eichinger
e7cbf3d6de Merge pull request #4406 from cgundogan/pr/arduino/doc_fix
arduino: minor doc fix
2015-12-04 17:31:15 +01:00
Cenk Gündoğan
7761045c48 arduino: minor doc fix 2015-12-04 17:27:44 +01:00
Cenk Gündoğan
c56f8530ad rpl: shell: do not use PRIu64 2015-12-04 15:42:18 +01:00
Cenk Gündoğan
de8ea8b206 Merge pull request #4400 from OlegHahm/netif_exist
gnrc netif: add a check for interface existence
2015-12-04 14:26:35 +01:00
Lucas Jenß
80b771af5e Merge pull request #4266 from A-Paul/shell_ping6_addrerr
ping6: dedicated message at address parsing error
2015-12-04 09:27:01 +01:00
DipSwitch
ede923bc5c tftp: implement TFTP server and client
Fix: packet size and typo in transfer mode main -> mail
2015-12-03 21:45:48 +01:00
Oleg Hahm
9f7be0a2e5 gnrc netif: add a check for interface existence 2015-12-03 18:35:23 +01:00
Martine Lenders
281b0ba46e Merge pull request #4343 from kb2ma/misc/fix-checksum
Fix UDP/ICMPv6 checksum for a sliced/accumulated payload.
2015-12-03 13:16:12 +01:00
Hauke Petersen
0b15943cc1 Merge pull request #4373 from haukepetersen/opt_ipv6_addr
net/gnrc/ipv6: de-inlined ipv6_addr_equal
2015-12-03 12:11:14 +01:00
Oleg Hahm
c96c5dda24 IPv6 netif: documentation ammendment 2015-12-02 18:11:55 +01:00
Oleg Hahm
b366e59c87 conn: add function to find the best source address
...and use it in POSIX sendto() function.
2015-12-02 18:11:55 +01:00
Cenk Gündoğan
315ae0eeb4 Merge pull request #4326 from OlegHahm/posix_sockets_dgram_fixes
posix sockets: recvfrom on connectionless transports
2015-12-02 17:21:27 +01:00
Oleg Hahm
860321c3e9 posix sockets: use network byteorder for port 2015-12-02 14:45:43 +01:00
Oleg Hahm
5f663826c7 posix sockets: remove pointless inline function 2015-12-02 14:45:43 +01:00
Oleg Hahm
c366f2bbcd sockets: perform implicit bind during sendto()
A client should not require to explicitly call bind() to receive packets, but is expected to receive replies sent to the ephemeral port that was selected as a source port by the UDP implementation.
2015-12-02 14:45:43 +01:00
Oleg Hahm
0153933241 posix sockets: store src_port in socket struct 2015-12-02 14:38:52 +01:00
Andreas "Paul" Pauli
46f3729798 ping6: dedicated message at address parsing error 2015-12-02 14:34:10 +01:00
Ken Bannister
1abffc84e1 Update layer 4 files to fix checksum with inet_csum_slice(). 2015-12-02 05:53:58 -05:00
Ken Bannister
835a2d8a27 Add inet_csum_slice() to fix checksum for a sliced layer 4 payload
Padding for an odd number of bytes was not calculated properly.
2015-12-02 05:53:52 -05:00
Hauke Petersen
da39b3e939 net/gnrc/ipv6: de-inlined ipv6_addr_equal 2015-12-01 18:54:35 +01:00
Hauke Petersen
6134dc80fd sys/phydat: fixed typos in documentation 2015-12-01 14:34:59 +01:00
e53dc6f5e2 Merge pull request #3538 from haukepetersen/add_sensif_actif
Introducing SAUL, the [S]ensor [A]ctuator [U]ber [L]ayer
2015-12-01 11:01:20 +01:00
Oleg Hahm
218b3a4c3a Merge pull request #4138 from rousselk/netopt-cca-threshold
Add a netopt for getting and setting CCA threshold
2015-12-01 01:47:14 +01:00
Hauke Petersen
7accaa7b74 sys/shell: removed shell cmds for SAULified sensors
- isl29020
- l3g4200d
- lps331ap
- lsm303dlhc
2015-11-30 20:33:55 +01:00
Hauke Petersen
4950650c19 sys/auto_init: added auto init for SAUL devices 2015-11-30 20:33:54 +01:00
Hauke Petersen
9d5a39cc3b sys/shell: added shell command for SAUL 2015-11-30 20:33:54 +01:00
Hauke Petersen
6d14d429e6 sys: added SAUL registry 2015-11-30 20:33:53 +01:00
Hauke Petersen
786895a378 sys: added module for handling physical data 2015-11-30 20:33:53 +01:00
Lucas Jenss
ddaa9863f2 Add 256 byte block hamming code implementation 2015-11-30 20:08:36 +01:00
Oleg Hahm
4d27214a8d Merge pull request #4258 from BytesGalore/cpp11_use_xtimer
cpp11: vtimer->xtimer
2015-11-30 19:30:40 +01:00
Jonas
4ab55873dd implement cca_threshold settings to shell 2015-11-30 13:15:25 +01:00
Kévin Roussel
be49059c65 Add NETOPT_CCA_THRESHOLD option to the 'netopt_t' list 2015-11-30 13:07:00 +01:00
2d1ad4b31e Merge pull request #4272 from OlegHahm/xtimer_msg_receive_timeout
xtimer: implement missing msg receive timeout
2015-11-29 00:02:08 +01:00
2cf68f30ec Merge pull request #4312 from kaspar030/misc_fmt_compile_fixes
cpu: atmega_common, msp430: misc libc fixes for fmt
2015-11-28 23:47:09 +01:00
BytesGalore
c1a3ccdef6 Merge pull request #4322 from cgundogan/pr/fib/print_fix
fib: fix output of fibroute
2015-11-28 11:38:55 +01:00
BytesGalore
529e83675e cpp11: switched to use xtimer
Also switched the syscalls of cpu/native to use xtimer, only at _gettimeofday()
2015-11-27 18:36:25 +01:00
Martine Lenders
63770e17b5 Merge pull request #4352 from authmillenon/doc/fix/gnrc_netdev2
gnrc_netdev2: fix documentation
2015-11-27 16:25:20 +01:00
Martine Lenders
8d94765c20 gnrc_netdev2: fix documentation 2015-11-27 15:07:57 +01:00
Martine Lenders
ce06027760 gnrc_netdev2: remove unrequired forward declaration 2015-11-27 15:07:57 +01:00
Martine Lenders
2b6bea0196 Merge pull request #4299 from authmillenon/gnrc_netif_hdr/opt/un-inline
gnrc_netif_hdr: un-inline build function
2015-11-27 15:07:29 +01:00
Martine Lenders
507b4381d2 Merge pull request #4335 from authmillenon/gnrc_netdev2/enh/namescheme
gnrc_netdev2: harmonize naming scheme to rest of GNRC
2015-11-27 14:16:42 +01:00
Martine Lenders
2cc2adffee Merge pull request #3900 from haukepetersen/add_arduino_api
sys: added Arduino API to RIOT
2015-11-27 13:35:29 +01:00
Martine Lenders
74722888f6 gnrc_netif_hdr: un-inline build function 2015-11-27 13:19:50 +01:00
Martine Lenders
71ac48523b Merge pull request #4303 from authmillenon/shell/enh/rtr-flags
shell: sc_netif: show and manipulate router related flags
2015-11-27 13:09:41 +01:00
Martine Lenders
3c00cec299 gnrc_netdev2: harmonize naming scheme to rest of GNRC 2015-11-27 13:03:37 +01:00
Martine Lenders
c6aa1441e5 Merge pull request #4347 from cgundogan/pr/ndp/use_correct_flag
ndp: use on-link flag instead of auto flag
2015-11-27 12:55:55 +01:00
Hauke Petersen
7855cb3707 sys: added module for running Arduino code 2015-11-27 12:45:12 +01:00
test
5bb6df9c6d doc: ndp: remove GNRC_ from PIO flags 2015-11-26 23:40:30 +01:00
test
432f6c34ab ndp: use on-link flag instead of auto flag 2015-11-26 23:37:39 +01:00
157f8c93ad sys: fmt: add workaround for AVR libc's missing write() 2015-11-26 20:41:36 +01:00
René Kijewski
ab3345ac5a Merge pull request #4321 from kaspar030/cleanup_posix
sys: cleanup posix compat code
2015-11-26 20:39:30 +01:00
Oleg Hahm
56903f3385 Merge pull request #4325 from OlegHahm/posix_socket_recvfrom_init
posix sockets: initialize sockaddr properly to 0
2015-11-26 12:00:16 +01:00
Oleg Hahm
7efc8fd265 posix sockets: initialize sockaddr properly to 0 2015-11-26 11:25:40 +01:00
Cenk Gündoğan
7fb889fa1a nhdp: remove unused variable 2015-11-24 20:56:27 +01:00
Cenk Gündoğan
2aabc8ccea nhdp: use conn_udp_close 2015-11-24 20:56:27 +01:00
Cenk Gündoğan
c516e4e759 nhdp: fix call to conn_udp_recvfrom 2015-11-24 20:56:27 +01:00
Cenk Gündoğan
e53c4a00a8 nhdp: include fixes 2015-11-24 20:56:27 +01:00
Martine Lenders
4366d9d29c shell: sc_netif: show and manipulate router related flags 2015-11-24 20:00:48 +01:00
Martine Lenders
7af2a62b12 Merge pull request #4110 from authmillenon/posix/api/i4109
posix_semaphore: make API POSIX compliant and port to xtimer (+ fixes)
2015-11-24 15:04:44 +01:00
Martine Lenders
db01af3502 sema: deactivate interrupts for queue manipulation 2015-11-24 14:06:01 +01:00
Martine Lenders
77547dd399 sema: fix race-condition that causes timeout reset 2015-11-24 14:06:01 +01:00
Martine Lenders
21ea7cc4ae posix_semaphore: port to xtimer 2015-11-24 14:06:00 +01:00
Martine Lenders
d104cff214 sema: port to xtimer 2015-11-24 10:46:06 +01:00
5926b50b85 Merge pull request #4079 from kaspar030/add_minstd_prng
sys: random: modularize PRNG module, add LCG alternatives
2015-11-24 10:03:51 +01:00
565d3ca72f sys: shell: renamed mersenne_* to random_* 2015-11-24 06:52:39 +01:00
9c93e72d81 sys: random: add simple LCG PRNGs 2015-11-24 06:52:39 +01:00
fab1681735 sys: div: add div/mod 44488 (needed for minstd prng) 2015-11-24 06:52:39 +01:00
Oleg Hahm
0ddd6ec15e xtimer: implement xtimer_msg_receive_timeout 2015-11-23 20:45:25 +01:00
Oleg Hahm
4fd7cfea9f Merge pull request #4324 from OlegHahm/posix_socket_recvfrom_byte_order
conn: fix UDP port byteorder in recvfrom
2015-11-23 20:24:46 +01:00
test
b31d82d45e newlib/syscalls: minor doc fix 2015-11-23 19:20:47 +01:00
Cenk Gündoğan
58de2cf1a7 Merge pull request #4280 from thomaseichinger/pr/fix_osx_again
net/fib: shell: fix warnings/errors thrown by clang on OS X
2015-11-23 15:50:46 +01:00
test
db7e8a7b37 sixlowpan: iphc: minor optimizations 2015-11-23 13:17:23 +01:00
BytesGalore
3e7753bff4 Merge pull request #4298 from cgundogan/pr/rpl/dao_timer_reuse
rpl: reuse timer for periodic daos
2015-11-23 07:49:19 +01:00
BytesGalore
ad7b0f0685 Merge pull request #4296 from cgundogan/pr/rpl/dao_refactoring
rpl: directly iterate fib entries for DAO and mark external routes
2015-11-23 07:20:51 +01:00
Oleg Hahm
9d1dd39f36 conn: fix UDP port byteorder in recvfrom
Additionally cleans up some superfluous functions.
2015-11-20 22:43:57 +01:00
test
244bfb3fd4 fib: fix output of fibroute 2015-11-20 10:50:03 +01:00
Hauke Petersen
3886478ed9 sys/auto_init/cc110x: adapted to moved includes 2015-11-20 10:32:43 +01:00