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
a9cc8bab
Commit
a9cc8bab
authored
8 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Patches
Plain Diff
gnrc: ndp: suppress wrong cppcheck warnings
parent
45cd9ad5
No related branches found
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/ndp/gnrc_ndp.c
+2
-0
2 additions, 0 deletions
sys/net/gnrc/network_layer/ndp/gnrc_ndp.c
sys/net/gnrc/network_layer/ndp/node/gnrc_ndp_node.c
+2
-0
2 additions, 0 deletions
sys/net/gnrc/network_layer/ndp/node/gnrc_ndp_node.c
with
4 additions
and
0 deletions
sys/net/gnrc/network_layer/ndp/gnrc_ndp.c
+
2
−
0
View file @
a9cc8bab
...
@@ -672,6 +672,8 @@ void gnrc_ndp_retrans_nbr_sol(gnrc_ipv6_nc_t *nc_entry)
...
@@ -672,6 +672,8 @@ void gnrc_ndp_retrans_nbr_sol(gnrc_ipv6_nc_t *nc_entry)
mutex_unlock
(
&
ipv6_iface
->
mutex
);
mutex_unlock
(
&
ipv6_iface
->
mutex
);
}
}
}
}
/* cppcheck-suppress knownConditionTrueFalse
* cppcheck bug: probes_remaining is initialized to a value > 1 */
else
if
(
nc_entry
->
probes_remaining
<=
1
)
{
else
if
(
nc_entry
->
probes_remaining
<=
1
)
{
/* For a 6LoWPAN router entries may be set to UNREACHABLE instead
/* For a 6LoWPAN router entries may be set to UNREACHABLE instead
...
...
This diff is collapsed.
Click to expand it.
sys/net/gnrc/network_layer/ndp/node/gnrc_ndp_node.c
+
2
−
0
View file @
a9cc8bab
...
@@ -80,6 +80,8 @@ kernel_pid_t gnrc_ndp_node_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len,
...
@@ -80,6 +80,8 @@ kernel_pid_t gnrc_ndp_node_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len,
}
}
#endif
#endif
/* cppcheck-suppress knownConditionTrueFalse
* cppcheck bug: next_hop_ip might be initialized if a FIB is available */
if
(
next_hop_ip
==
NULL
)
{
/* no route to host */
if
(
next_hop_ip
==
NULL
)
{
/* no route to host */
if
(
!
dst_link_local
)
{
if
(
!
dst_link_local
)
{
if
(
iface
==
KERNEL_PID_UNDEF
)
{
if
(
iface
==
KERNEL_PID_UNDEF
)
{
...
...
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