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
5e2b4b6b
Commit
5e2b4b6b
authored
9 years ago
by
Martine Lenders
Browse files
Options
Downloads
Plain Diff
Merge pull request #3951 from OlegHahm/6lowpan_nd_pio_fixes
6lowpan nd: PIO fixes
parents
109b2ab5
fee9ad77
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c
+1
-0
1 addition, 0 deletions
sys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c
sys/net/gnrc/network_layer/sixlowpan/nd/router/gnrc_sixlowpan_nd_router.c
+4
-2
4 additions, 2 deletions
...work_layer/sixlowpan/nd/router/gnrc_sixlowpan_nd_router.c
with
5 additions
and
2 deletions
sys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c
+
1
−
0
View file @
5e2b4b6b
...
@@ -128,6 +128,7 @@ static ipv6_addr_t *_add_addr_to_entry(gnrc_ipv6_netif_t *entry, const ipv6_addr
...
@@ -128,6 +128,7 @@ static ipv6_addr_t *_add_addr_to_entry(gnrc_ipv6_netif_t *entry, const ipv6_addr
}
}
#endif
#endif
#ifdef MODULE_GNRC_SIXLOWPAN_ND_BORDER_ROUTER
#ifdef MODULE_GNRC_SIXLOWPAN_ND_BORDER_ROUTER
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
();
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
"
);
...
...
This diff is collapsed.
Click to expand it.
sys/net/gnrc/network_layer/sixlowpan/nd/router/gnrc_sixlowpan_nd_router.c
+
4
−
2
View file @
5e2b4b6b
...
@@ -46,13 +46,15 @@ static gnrc_sixlowpan_nd_router_prf_t *_get_free_prefix(ipv6_addr_t *prefix, siz
...
@@ -46,13 +46,15 @@ static gnrc_sixlowpan_nd_router_prf_t *_get_free_prefix(ipv6_addr_t *prefix, siz
{
{
gnrc_sixlowpan_nd_router_prf_t
*
prf
=
NULL
;
gnrc_sixlowpan_nd_router_prf_t
*
prf
=
NULL
;
for
(
int
i
=
0
;
i
<
GNRC_SIXLOWPAN_ND_ROUTER_ABR_NUMOF
;
i
++
)
{
for
(
int
i
=
0
;
i
<
GNRC_SIXLOWPAN_ND_ROUTER_ABR_
PRF_
NUMOF
;
i
++
)
{
if
((
ipv6_addr_match_prefix
(
&
_prefixes
[
i
].
prefix
->
addr
,
prefix
)
>=
prefix_len
)
&&
if
((
ipv6_addr_match_prefix
(
&
_prefixes
[
i
].
prefix
->
addr
,
prefix
)
>=
prefix_len
)
&&
(
_prefixes
[
i
].
prefix
->
prefix_len
==
prefix_len
))
{
(
_prefixes
[
i
].
prefix
->
prefix_len
==
prefix_len
))
{
return
&
_prefixes
[
i
];
return
&
_prefixes
[
i
];
}
}
if
((
prf
==
NULL
)
&&
ipv6_addr_is_unspecified
(
&
_prefixes
[
i
].
prefix
->
addr
))
{
if
((
prf
==
NULL
)
&&
((
_prefixes
[
i
].
prefix
==
NULL
)
||
ipv6_addr_is_unspecified
(
&
_prefixes
[
i
].
prefix
->
addr
)))
{
prf
=
&
_prefixes
[
i
];
prf
=
&
_prefixes
[
i
];
}
}
}
}
...
...
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