Bas Stottelaar
1b35d06a51
sys/*: realign ENABLE_DEBUG
2020-10-23 11:27:48 +02:00
Leandro Lanzieri
d25fc243c4
treewide: change prefix for generated Kconfig symbols.
...
This changes the prefixes of the symbols generated from USEMODULE and
USEPKG variables. The changes are as follow:
KCONFIG_MODULE_ => KCONFIG_USEMODULE_
KCONFIG_PKG_ => KCONFIG_USEPKG_
MODULE_ => USEMODULE_
PKG_ => USEPKG_
2020-08-31 09:37:09 +02:00
PeterKietzmann
de99b99b35
Kconfig: Expose gnrc/sixlowpan configurations
2020-01-17 18:09:14 +01:00
05b6af466c
sys: add missig <string.h> includes
2018-09-20 23:47:40 +02:00
Martine Lenders
f90a9a875f
gnrc_ndp2: rename to gnrc_ndp
2017-11-17 10:41:54 +01:00
Martine Lenders
71a7dbf918
gnrc: remove legacy network interface structures
2017-11-17 09:20:29 +01:00
Martine Lenders
ccb8462d94
gnrc_sixlowpan_nd: adapt for NIB
2017-11-16 15:49:21 +01:00
Martine Lenders
861035f22d
gnrc: integrate gnrc_netif2
...
Not link-able, since NDP and NC are missing (intentionally)
2017-11-07 19:08:44 +01:00
Oleg Hahm
45cd9ad5c4
gnrc: 6lowpan-nd: suppress wrong cppcheck warnings
2017-04-14 14:36:15 +02:00
Oleg Hahm
191797bc6b
gnrc: 6lowpan-nd: removed superfluous check
2017-04-14 14:36:15 +02:00
Oleg Hahm
4f4214235b
timex: unambiguous time conversion macros
2017-01-19 13:18:08 +01:00
7718f114cb
all: remove pointer casts for msg.content.ptr
2016-06-02 23:13:42 +02:00
Martine Lenders
0e32745b8a
gnrc: replace static initializers with constants where sensible
2016-03-01 18:29:15 +01:00
ded39b461e
sys: random: rename genrand_* to random_*
2016-02-29 21:33:17 +01:00
Cenk Gündoğan
0ac4ee705c
ipv6: rpl: add source routing header for RPL
2016-02-27 20:39:12 +01:00
Martine Lenders
379703ae3a
gnrc: use gnrc_pkt_search_type instead of LL_SEARCH_SCALAR
2016-02-11 01:05:02 +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
Martine Lenders
da5abe1bcd
gnrc_sixlowpan_nd: use gnrc_ipv6_nc_get_l2_addr()
2016-01-26 10:19:16 +01: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
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
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
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
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
023c0984b3
sixlowpan: switch ltimer to be an xtimer
2015-10-28 21:03:09 +01:00
Cenk Gündoğan
4297972054
nc: use xtimer for gnrc_ipv6_nc_t::nbr_sol_timer
2015-10-28 15:24:45 +01:00
Cenk Gündoğan
d587cf9cd4
netif: use xtimer for gnrc_ipv6_netif_t::rtr_sol_timer
2015-10-26 21:03:38 +01:00
Cenk Gündoğan
40e504de65
nc: use xtimer for gnrc_ipv6_nc_t::type_timeout
2015-10-22 15:55:46 +02:00
Cenk Gündoğan
beb3321132
nc: remove unused rtr_sol_timer
2015-10-20 19:05:42 +02:00
Oleg Hahm
63fda9e900
6lowpan: remove tentative flag for local addresses
...
There's no real need for this flag, but it causes problem during address registration.
2015-09-24 13:33:10 +02:00
Oleg Hahm
9b7b1bae37
6lowpan: prefixes are initially all null pointers
...
Since the prefixes list stores pointers, one need to check for null pointers first.
2015-09-24 02:27:42 +02:00
Oleg Hahm
ba023aecb8
6lowpan nd: use correct upper limit for iterating
...
While iterating over the prefixes the wrong upper limit was used for the for loop.
2015-09-24 02:27:42 +02:00
Martine Lenders
542c1e82ac
gnrc_sixlowpan_nd: fix 6ctx option check
2015-09-22 14:36:44 +02:00
Martine Lenders
3448569eb8
Merge pull request #3916 from OlegHahm/6lowpan_rtr_adv_mc_timer
...
6lowpan nc: rtr sol timer expects an interface
2015-09-22 11:28:44 +02:00
Oleg Hahm
f0e2f50713
6lowpan nc: rtr sol timer expects an interface
2015-09-22 10:53:08 +02:00
Oleg Hahm
f3f4d61f93
sixlowpan nd: 6LBR shouldn't send rtr sol over 6lo
2015-09-21 23:21:22 +02:00
Oleg Hahm
682bde25d9
6lowpan nd: check right NCE in AR handling
...
When checking the address registration option, the address has to be passed in order to check the correct neighbor cache entry.
2015-09-21 09:25:12 +02:00
Oleg Hahm
effe7bbde0
6lowpan: 6LBR need to initialize rtr adv interval
2015-09-20 21:42:20 +02:00
Martine Lenders
f3b9e5fa8e
gnrc_sixlowpan_nd_router: cast before shifting
...
`avr-gcc` was complaining about shifting the value out of the width of
type. This is a fix for that.
2015-09-20 16:04:30 +02:00
Martine Lenders
b3c16b3abc
Merge pull request #3892 from authmillenon/gnrc_sixlowpan_nd/fix/nd-state-machine
...
gnrc_sixlowpan_nd: activate NC state machine
2015-09-19 04:04:45 +02:00
Martine Lenders
802e229bcb
gnrc_sixlowpan_nd: register new addresses for AAC
2015-09-18 00:23:12 +02:00
Martine Lenders
1682b76866
gnrc_ndp_internal: adapt nbr_sol send function to get src
2015-09-18 00:23:12 +02:00
Martine Lenders
79c1240590
gnrc_sixlowpan_nd: activate NC state machine
2015-09-18 00:12:19 +02:00
Oleg Hahm
d8824bd0c5
6lowpan nd: tentative NCE is like no NCE
2015-09-17 12:47:56 +02:00
Oleg Hahm
3c6202e8ed
sixlowpan nd: ignore empty eui64 in neighbor cache
2015-09-17 11:11:26 +02:00
Oleg Hahm
d7546d0f0c
sixlowpan nd: add missing breaks for switch-case
2015-09-17 11:11:26 +02:00
Martine Lenders
108043594a
Merge pull request #3846 from OlegHahm/6lbr_address_resolution
...
6lowpan nd: always perform l2 lookup for 6LBR
2015-09-17 10:14:12 +02:00
Martine Lenders
371240e8de
Merge pull request #3874 from authmillenon/gnrc_sixlowpan_nd/fix/resched-nbr-sol
...
gnrc_sixlowpan_nd: fix reschedule of neighbor solicitations
2015-09-17 10:07:41 +02:00
Oleg Hahm
60be8fac83
sixlowpan nd: check for a potential NCE first
2015-09-17 08:56:28 +02:00