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

3286 Commits

Author SHA1 Message Date
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
test
1f2c674026 rpl: reuse timer for periodic daos 2015-11-20 10:06:07 +01:00
8a61ef4c75 sys: posix: switch to xtimer for sleep/usleep 2015-11-20 00:54:29 +01:00
2640277156 sys: xtimer: add posix sleep/usleep wrapper 2015-11-20 00:44:28 +01:00
41ece232fa sys: remove obsolete posix_io code 2015-11-20 00:43:57 +01:00
Hauke Petersen
421e69030a Merge pull request #4315 from haukepetersen/doc_periph_fixes
doc: various fixes related to 'periph'
2015-11-19 22:59:26 +01:00
Oleg Hahm
3980fa3f5d Merge pull request #4270 from haukepetersen/opt_at86_autoinit
driver/at86rf2xx: optimized auto initialization
2015-11-19 22:28:56 +01:00
BytesGalore
6292b165b8 Merge pull request #4297 from cgundogan/pr/rpl/cleanup_refactor
rpl: reuse _lt_timer for cleanup
2015-11-19 21:01:03 +01:00
Hauke Petersen
6597abe25e sys/auto_init/at86rf: fixed debug message 2015-11-19 16:25:40 +01:00
Hauke Petersen
95086da431 doc/drivers/sys: fixed all refs to drivers_periph_xx 2015-11-19 16:09:25 +01:00
127495b1b2 Merge pull request #4311 from kaspar030/remove_div_u32_by_10
sys: div: remove div_u32_by_10() (and _mod_10())
2015-11-19 15:35:29 +01:00
e98237a26f sys: div: remove div_u32_by_10() 2015-11-19 13:29:10 +01:00
80b8d2ed37 Merge pull request #4306 from kaspar030/make_fmt_not_use_div_10
sys: fmt: use standard / for division by 10, not div.h
2015-11-19 13:23:45 +01:00
f2a2656bac sys: fmt: use standard / for division by 10, not div.h 2015-11-18 19:00:13 +01:00
Oleg Hahm
bfb6c0c95d Merge pull request #4286 from kaspar030/make_newlib_use_xtimer
sys: newlib: use xtimer_now64() for gettimeofday()
2015-11-17 21:08:01 +01:00
test
bbe1b6f125 rpl: reuse xtimer for cleanup 2015-11-17 19:00:18 +01:00
Cenk Gündoğan
20364ff36c Merge pull request #4293 from BytesGalore/fib_sc_remove_misleading_flags
fib: shell removed to set flags automatically to IP type
2015-11-17 18:57:19 +01:00
Cenk Gündoğan
cb8f50ce40 Merge pull request #4292 from OlegHahm/fib_rpl_config
fib: make FIB size dependent on existence of RPL
2015-11-17 18:53:11 +01:00
test
37709d27e5 rpl: directly iterate through fib entries for DAO 2015-11-17 18:48:30 +01:00
Martine Lenders
5f04675403 Merge pull request #4284 from authmillenon/gnrc_ipv6/enh/addr-res-without-nd
gnrc_ipv6: get l2addr from NC if no ND present
2015-11-17 17:59:58 +01:00
BytesGalore
711677eb7b fib: shell removed to set flags automatically to IP type 2015-11-17 17:10:36 +01:00
Oleg Hahm
e4244a29ff fib: make FIB size dependent on existence of RPL
Also, enables to configure the FIB size from the applicatin
2015-11-17 16:48:04 +01:00
Martine Lenders
c7ebcbbda2 gnrc_ipv6: get l2addr from NC if no ND present 2015-11-17 16:20:58 +01:00
Thomas Eichinger
77ef14e4d7 Merge pull request #4273 from LudwigKnuepfer/pr/doc_sys_fix
cpu/native: malloc.h for osx: fix doxygen, move
2015-11-17 14:40:48 +01:00
Martine Lenders
6595e8c57f Merge pull request #4174 from authmillenon/gnrc_ndp_internal/fix/send-ras-without-pio
gnrc_ndp_internal: send RAs even when there are no PIOs
2015-11-17 14:01:55 +01:00
f23f3c0d2f sys: newlib: use xtimer_now64() for gettimeofday() 2015-11-17 12:50:48 +01:00
Oleg Hahm
46dc908fcb gnrc 6lowpan: exclude CTX if not part of the app
This removes dependencies to 6LoWPAN context module if an application is built without support for it.

Also, includes a missing header.
2015-11-17 12:04:11 +01:00
Thomas Eichinger
32a2bacc8d shell/sc_netif: fix clang formating warning/error 2015-11-16 16:06:13 +01:00
Thomas Eichinger
6e3d2b6c53 net/fib: fix clang extra parantheses warning/error 2015-11-16 16:05:37 +01:00
Ludwig Knüpfer
a86866ea9f cpu/native: malloc.h for osx: fix doxygen, move 2015-11-15 12:14:59 +01:00
Cenk Gündoğan
f7934e336a Merge pull request #4238 from authmillenon/shell_command/fix/zep-deps
shell_command: only include sc_zep.c when gnrc_zep AND ipv6_addr are present
2015-11-12 10:16:57 +01:00
Oleg Hahm
ee33e6941b shell ping6: do not try to parse address as count
The first parameter should be handled as count only if there are at least two parameters given.
2015-11-11 16:03:39 +01:00
Cenk Gündoğan
a88f72d0da Merge pull request #4245 from cgundogan/pr/gnrc_nettest/vtimer_xtimer
gnrc_nettest: use xtimer instead of vtimer
2015-11-10 12:21:48 +01:00
Cenk Gündoğan
01225ca9d5 gnrc_nettest: use xtimer instead of vtimer 2015-11-10 08:34:36 +01:00
Cenk Gündoğan
677c1304b9 zep: remove superfluous vtimer include 2015-11-10 08:13:11 +01:00
Cenk Gündoğan
f7166bbfd7 rpl: use uint32_t for the parent lifetime 2015-11-09 21:24:08 +01:00
BytesGalore
3153389e49 Merge pull request #4241 from cgundogan/pr/rpl/parent_lifetime_32
rpl: use uint32_t for the parent lifetime
2015-11-09 21:17:16 +01:00
Cenk Gündoğan
bf5e9b4351 rpl: use uint32_t for the parent lifetime 2015-11-09 20:28:31 +01:00
Cenk Gündoğan
b1f2f22898 rpl: uint32_t is sufficient for the DAO timer 2015-11-09 17:25:05 +01:00
Martine Lenders
fc831f0ec2 Merge pull request #4216 from cgundogan/pr/network_layer/remove_timex
net/gnrc/network_layer: remove timex_t
2015-11-09 16:27:24 +01:00
Cenk Gündoğan
4bcffbc2aa Merge pull request #4210 from authmillenon/shell/enh/xtimerfy-sc-icmpv6
shell: xtimerfy sc_icmpv6
2015-11-09 16:20:34 +01:00
Martine Lenders
33957f94fe shell: xtimerfy sc_icmpv6 2015-11-09 15:39:44 +01:00
Cenk Gündoğan
ce6b6b84fc rpl: decrease default numbers 2015-11-09 14:56:51 +01:00
Cenk Gündoğan
bf3a504691 nc: ndp: sixlowpan: remove timex.h include 2015-11-09 14:55:04 +01:00
Cenk Gündoğan
401e1b3814 sixlowpan: timex_t -> uint32_t 2015-11-09 14:55:04 +01:00
Cenk Gündoğan
34c3267bfe ndp: timex_t -> uint32_t 2015-11-09 14:55:04 +01:00