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

154 Commits

Author SHA1 Message Date
Benjamin Valentin
6e7d5ae2d3 codespell: fix remaining issues 2022-09-16 14:00:35 +02:00
Martine Lenders
c6d46057b0 sixlowpan: use generic format strings instead of inttypes.h macros
We had bad experiences with those in the past when used with newlib-nano
;-)
2018-07-17 12:22:16 +02:00
Martine Lenders
ecfff3e812 sixlowpan: fix decoding of DAM in sixlowpan_print()
Destination address compression is all in the least significant nibble
of that byte in the IPHC header [[1]].

[1]: https://tools.ietf.org/html/rfc6282#section-3.1.1
2018-07-17 12:22:15 +02:00
Martine Lenders
11d3cd8efa net: fix header dumps for nanospec newlib 2016-11-10 21:21:28 +01:00
Yonezawa-T2
7a030004ad sixlowpan_print: fix dump for elided source/destination address 2016-06-03 18:56:05 +09: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
Martine Lenders
93031c9b60 sixlowpan: move non-GNRC stuff to its own module 2015-08-18 17:03:47 +02:00
5d8349298f remove bulk of legacy network stack and drivers 2015-08-06 12:12:47 +02:00
Joakim Gebart
9a0a5e8816 sys/net/network_layer/sixlowpan/ip.c: Allow unique local unicast addresses to be selected as the best source address
It makes no sense preferring ::1 over any unique local address when communicating with other nodes.
2015-07-14 19:31:21 +02:00
Joakim Gebart
4562f6b824 sys/net/sixlowpan: Add ul suffix to constants to fix warnings on msp430 2015-07-14 08:11:15 +02:00
rajithr
70fa494666 sixlowpan/ip: Fixing an out of bounds access issue reported by Coverity Scan
sixlowpan/ip: Fixing an out of bounds access issue reported by Coverity Scan
2015-06-03 10:29:43 +05:30
BytesGalore
b39afa8649 ip: added a define to enable a FIB compatibility mode replacing get_next_hop() 2015-06-01 17:31:45 +02:00
Joakim Gebart
13832d8e62 everything: Remove filename from @file Doxygen command 2015-05-22 07:34:41 +02:00
Lucas Jenss
426170b064 Improve naming of thread stacksize/priority constants
As discussed in #2725, this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:

* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
Joakim Gebart
ca7697d84f sys/net/network_layer/sixlowpan/ip.c reduce scope of bmatch 2015-05-18 06:31:28 +02:00
Oleg Hahm
aec03a11ee Merge pull request #2995 from jfischer-phytec-iot/fix@ip-rm-addr-of-op
sys/net/network_layer/sixlowpan/ip.c: remove unnecessary address-of-operator
2015-05-16 19:50:23 +02:00
Oleg Hahm
5ad4b1f915 Merge pull request #2996 from jfischer-phytec-iot/fix@icmp-prefix-l-param
sys/.../icmp.c: fix wrong ndp_add_prefix_info parameter
2015-05-16 19:50:07 +02:00
Oleg Hahm
be707befbc Merge pull request #2997 from jfischer-phytec-iot/fix@icmp-prefix-search
sys/.../icmp.c: fix prefix search
2015-05-16 19:42:39 +02:00
Johann Fischer
7087bdcb50 sys/.../ip.c: fix ipv6_net_if_get_best_src_addr
This patch fixes ipv6_net_if_get_best_src_addr,
the function seems not to be finished.
The patch also adds a filter for the prefixes,
it is necessary because the prefixes are stored
in the same list as the addresses.
2015-05-16 12:33:30 +02:00
Johann Fischer
41cc10520d sys/.../icmp.c: fix prefix search
Replace equal operator inside ndp_prefix_info_search by not equal.
Otherwise, the existing prefix can not be found.
2015-05-16 12:25:43 +02:00
Johann Fischer
b20a7b0a27 sys/.../icmp.c: fix wrong ndp_add_prefix_info parameter
Inside the function recv_rtr_adv, ndp_add_prefix_info was called
with the wrong parameter.
2015-05-16 11:35:28 +02:00
Johann Fischer
fd72aaa9ac sys/net/network_layer/sixlowpan/ip.c: remove unnecessary address-of-operator 2015-05-16 11:06:46 +02:00
Martine Lenders
ac25058f26 Merge pull request #2727 from watr-li/unaligned-access-cortex-m0
Fix unaligned access on Samr21/Cortex-M0
2015-04-21 12:18:03 +02:00
Oleg Hahm
3dd3bbb461 transceiver: use transceiver specific broadcast 2015-04-19 20:35:11 +02:00
Oleg Hahm
bd828f109e Merge pull request #2350 from gebart/pr/sixlowpan-buffer-name
sixlowpan: rename global buffer->sixlowpan_buffer
2015-04-10 11:38:54 +02:00
Oleg Hahm
26710c1085 Merge pull request #2499 from gebart/pr/lowpan-address-decoding-fixes
sixlowpan: Handle 16-bit addresses correctly (both decode and encode)
2015-04-01 11:36:56 +02:00
Martine Lenders
f1becc6870 Merge pull request #2534 from jfischer-phytec-iot/pr@udp-header-decompression
lowpan.c: add udp header decompression
2015-03-31 19:39:18 +02:00
Lucas Jenss
5910cadb58 sys/net: Fix unaligned access on Samr21/Cortex-M0
*((uint16_t)*dest) results in a ldrh (load halfword) instruction
on an address that seems to not be halfword-aligned (?),
causing a hard-fault on the samr21-xpro board (cortex-m0
architecture). The issue seems to be very similar to
the one described in http://stackoverflow.com/a/21661366/124257
2015-03-29 04:58:44 +02:00
Joakim Gebart
334aeca246 sixlowpan: Refactor multicast destination compression handling
Stateless only, still no implementation for context-aware multicast encoding.
2015-03-25 08:08:07 +01:00
Joakim Gebart
9769d8adaf sixlowpan: Fix conditions for 16 bit encoding of unicast destination 2015-03-25 08:08:04 +01:00
Joakim Gebart
34457017cf sixlowpan: Fix conditions for encoding to 16 bit source addresses 2015-03-25 08:08:01 +01:00
Joakim Gebart
0b479b28e8 sixlowpan: Update reference to RFC 6282 2015-03-25 08:07:59 +01:00
Joakim Gebart
39c7566e11 sixlowpan: Decode 16-bit addresses correctly
10:  16 bits.  The first 112 bits of the address are elided.
The value of the first 64 bits is the link-local prefix padded with zeros.
The following 64 bits are 0000:00ff:fe00:XXXX, where XXXX are the 16 bits carried in-line.

See https://tools.ietf.org/html/rfc6282
2015-03-25 08:07:55 +01:00
Joakim Gebart
de7d6c7785 sixlowpan: rename global buffer->sixlowpan_buffer 2015-03-25 08:00:45 +01:00
Johann Fischer
939f07aab8 sys/net/network_layer/sixlowpan/lowpan.c: add udp header decompression 2015-03-04 18:18:27 +01:00
Joakim Gebart
70cf054b5e sixlowpan: Broadcast message when neighbour not found in cache. 2015-03-04 08:47:10 +01:00
Cenk Gündoğan
d6242360da net_if: proper u/l-bit inversion for short addresses 2015-03-03 20:03:54 +01:00
Joakim Gebart
2aa031e7c7 sixlowpan: Set U/L bit in short address to local. 2015-03-03 19:56:11 +01:00
Johann Fischer
90ab40657a sys/net/network_layer/sixlowpan/lowpan.c: reduce scope of debug variable 2015-03-02 18:42:38 +01:00
Joakim Gebart
726bdf9d7b Merge pull request #2512 from cgundogan/ip_d_addr_unused
ip: use d_addr instead of s_addr when setting the destaddr
2015-03-02 12:23:11 +01:00
Cenk Gündoğan
c3fc24700c rpl: use d_addr instead of s_addr when setting the destaddr 2015-03-02 10:33:45 +01:00
Cenk Gündoğan
3832fc57f5 Merge pull request #2496 from gebart/pr/6lowpan-print-addr
sixlowpan: Properly print source address when ENABLE_DEBUG
2015-03-02 08:21:42 +01:00
Joakim Gebart
578eb38c38 sixlowpan: Properly print source address when ENABLE_DEBUG 2015-02-26 19:22:07 +01:00
Joakim Gebart
db59de6c2e sixlowpan: Refactor DAC/DAM decoding to match SAC/SAM implementation. 2015-02-26 13:53:07 +01:00
Joakim Gebart
9933a431e3 sixlowpan: Refactor SAC/SAM decoding. 2015-02-26 12:19:30 +01:00
Joakim Gebart
ff6f8ff82b sixlowpan: Invert local/universal bit in EUI-64 when forming IPv6 Interface Identifiers. 2015-02-26 09:59:28 +01:00
Johann Fischer
ce423816af sys/net/network_layer/sixlowpan/mac.c: add missing p->processing--; 2015-02-11 11:57:46 +01:00
BytesGalore
c7eea4d0d5 sys/net/sixlowpan: change to release lowpan.c::lowpan_context_mutex when no context is recognized 2015-02-10 12:27:56 +01:00
Cenk Gündoğan
4347039e88 ip: make addr_str static
When setting the `ENABLE_DEBUG` flag to *1* in ip.c,
the **rpl_udp** example won't compile, because the variable `addr_str`
is also defined in **rpl_udp.h** as extern.
Prefixing `addr_str` with `static` in ip.c solves this problem.
2015-02-08 22:07:19 +01:00
Martine Lenders
0eb2d78dda doc: use my real name 2015-02-08 18:52:16 +01:00