Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
e95ce810
Commit
e95ce810
authored
9 years ago
by
Martine Lenders
Browse files
Options
Downloads
Plain Diff
Merge pull request #4252 from authmillenon/gnrc_ipv6_netif/enh/only-RA-with-GUA
gnrc_ipv6_netif: don't advertise routers without GUAs
parents
dc0d0020
5ddcf096
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c
+6
-1
6 additions, 1 deletion
sys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c
with
6 additions
and
1 deletion
sys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c
+
6
−
1
View file @
e95ce810
...
@@ -108,6 +108,9 @@ static ipv6_addr_t *_add_addr_to_entry(gnrc_ipv6_netif_t *entry, const ipv6_addr
...
@@ -108,6 +108,9 @@ static ipv6_addr_t *_add_addr_to_entry(gnrc_ipv6_netif_t *entry, const ipv6_addr
#ifdef MODULE_GNRC_SIXLOWPAN_ND_BORDER_ROUTER
#ifdef MODULE_GNRC_SIXLOWPAN_ND_BORDER_ROUTER
tmp_addr
->
valid
=
0xFFFF
;
tmp_addr
->
valid
=
0xFFFF
;
gnrc_sixlowpan_nd_router_abr_t
*
abr
=
gnrc_sixlowpan_nd_router_abr_get
();
gnrc_sixlowpan_nd_router_abr_t
*
abr
=
gnrc_sixlowpan_nd_router_abr_get
();
mutex_unlock
(
&
entry
->
mutex
);
gnrc_ipv6_netif_set_rtr_adv
(
entry
,
true
);
mutex_lock
(
&
entry
->
mutex
);
if
(
gnrc_sixlowpan_nd_router_abr_add_prf
(
abr
,
entry
,
tmp_addr
)
<
0
)
{
if
(
gnrc_sixlowpan_nd_router_abr_add_prf
(
abr
,
entry
,
tmp_addr
)
<
0
)
{
DEBUG
(
"ipv6_netif: error adding prefix to 6LoWPAN-ND management
\n
"
);
DEBUG
(
"ipv6_netif: error adding prefix to 6LoWPAN-ND management
\n
"
);
}
}
...
@@ -870,7 +873,9 @@ void gnrc_ipv6_netif_init_by_dev(void)
...
@@ -870,7 +873,9 @@ void gnrc_ipv6_netif_init_by_dev(void)
/* first interface wins */
/* first interface wins */
if
(
!
abr_init
)
{
if
(
!
abr_init
)
{
gnrc_sixlowpan_nd_router_abr_create
(
&
addr
,
0
);
gnrc_sixlowpan_nd_router_abr_create
(
&
addr
,
0
);
gnrc_ipv6_netif_set_rtr_adv
(
ipv6_if
,
true
);
/* XXX should be set to true if there ever is an hard-coded
* prefix set */
gnrc_ipv6_netif_set_rtr_adv
(
ipv6_if
,
false
);
abr_init
=
true
;
abr_init
=
true
;
}
}
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment