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
45cd9ad5
Commit
45cd9ad5
authored
8 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Patches
Plain Diff
gnrc: 6lowpan-nd: suppress wrong cppcheck warnings
parent
191797bc
No related branches found
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/sixlowpan/nd/gnrc_sixlowpan_nd.c
+6
-0
6 additions, 0 deletions
sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c
with
6 additions
and
0 deletions
sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c
+
6
−
0
View file @
45cd9ad5
...
...
@@ -142,6 +142,8 @@ kernel_pid_t gnrc_sixlowpan_nd_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_
#endif
#ifdef MODULE_GNRC_SIXLOWPAN_ND_ROUTER
/* next hop determination: https://tools.ietf.org/html/rfc6775#section-6.5.4 */
/* cppcheck-suppress redundantAssignment
* This path is only present for a certain configuration */
nc_entry
=
gnrc_ipv6_nc_get
(
iface
,
dst
);
#ifdef MODULE_FIB
if
((
next_hop
!=
NULL
)
&&
(
nc_entry
==
NULL
))
{
...
...
@@ -161,6 +163,8 @@ kernel_pid_t gnrc_sixlowpan_nd_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_
}
#endif
/* next hop determination according to: https://tools.ietf.org/html/rfc6775#section-5.6 */
/* cppcheck-suppress knownConditionTrueFalse
* cppcheck bug: next_hop might be set before */
if
((
next_hop
==
NULL
)
&&
ipv6_addr_is_link_local
(
dst
))
{
/* prefix is "on-link" */
/* multicast is not handled here anyway so we don't need to check that */
next_hop
=
dst
;
...
...
@@ -175,6 +179,8 @@ kernel_pid_t gnrc_sixlowpan_nd_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_
}
/* address resolution of next_hop: https://tools.ietf.org/html/rfc6775#section-5.7 */
/* cppcheck-suppress knownConditionTrueFalse
* cppcheck bug: nc_entry might be set before */
if
((
nc_entry
==
NULL
)
||
(
next_hop
!=
dst
))
{
/* get if not gotten from previous check */
nc_entry
=
gnrc_ipv6_nc_get
(
iface
,
next_hop
);
...
...
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