Yonezawa-T2
984e02a7ff
rbuf: made RBUF_INT_SIZE
configurable
2016-02-29 13:02:32 +09:00
Cenk Gündoğan
0ac4ee705c
ipv6: rpl: add source routing header for RPL
2016-02-27 20:39:12 +01:00
Cenk Gündoğan
847c4868a3
Merge pull request #4851 from cgundogan/pr/icmpv6/debug_fix
...
gnrc_icmpv6: fix debug outputs
2016-02-19 08:13:58 +01:00
Cenk Gündoğan
ee4553e176
gnrc_icmpv6: fix debug outputs
2016-02-19 07:51:10 +01:00
Oleg Hahm
fc398d857d
ndp: fix NCE creation on RA reception
...
RFC4861 says: "If a Neighbor Cache entry is created for the router
[while processing route advertisements], its reachability state MUST be
set to STALE as specified in Section 7.3.3."
2016-02-18 19:53:39 +01:00
Oleg Hahm
0a65d8c558
Merge pull request #4770 from Yonezawa-T2/rbuf_usec
...
rbuf: change arrival time unit from seconds to microseconds
2016-02-16 11:38:06 +01:00
Yonezawa-T2
d5a02b6de1
rbuf: change arrival time unit from seconds to microseconds
2016-02-16 17:22:25 +09:00
Martine Lenders
a66ce9c3eb
Merge pull request #4784 from authmillenon/gnrc_pkt/api/search-type-function
...
gnrc_pkt: provide type search function
2016-02-15 13:33:45 +01:00
Cenk Gündoğan
27a4770601
gnrc_ipv6: make the DEBUG output useful
2016-02-11 16:46:16 +01:00
Martine Lenders
379703ae3a
gnrc: use gnrc_pkt_search_type instead of LL_SEARCH_SCALAR
2016-02-11 01:05:02 +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
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
BytesGalore
10ea1226bc
gnrc/ipv6: add blacklisting of IPv6 addresses
2016-01-28 21:50:43 +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
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
Martine Lenders
5ddcf09627
gnrc_ipv6_netif: don't advertise routers without GUAs
2016-01-26 23:25:07 +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
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
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
Martine Lenders
70c3d29036
gnrc_icmpv6_error: initial import
2016-01-23 16:04:05 +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
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
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
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
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
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
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
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