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
ba13d8f5
Commit
ba13d8f5
authored
6 years ago
by
Martine Lenders
Browse files
Options
Downloads
Patches
Plain Diff
gnrc_icmpv6_error: introduce debug messages
parent
a7a8227e
No related branches found
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/icmpv6/error/gnrc_icmpv6_error.c
+10
-0
10 additions, 0 deletions
sys/net/gnrc/network_layer/icmpv6/error/gnrc_icmpv6_error.c
with
10 additions
and
0 deletions
sys/net/gnrc/network_layer/icmpv6/error/gnrc_icmpv6_error.c
+
10
−
0
View file @
ba13d8f5
...
...
@@ -18,6 +18,9 @@
#include
"net/gnrc/icmpv6/error.h"
#include
"net/gnrc/icmpv6.h"
#define ENABLE_DEBUG (0)
#include
"debug.h"
/* all error messages are basically the same size and format */
#define ICMPV6_ERROR_SZ (sizeof(icmpv6_error_dst_unr_t))
#define ICMPV6_ERROR_SET_VALUE(data, value) \
...
...
@@ -127,12 +130,16 @@ static void _send(gnrc_pktsnip_t *pkt)
if
(
pkt
!=
NULL
)
{
gnrc_netapi_send
(
gnrc_ipv6_pid
,
pkt
);
}
else
{
DEBUG
(
"gnrc_icmpv6_error: No space in packet buffer left
\n
"
);
}
}
void
gnrc_icmpv6_error_dst_unr_send
(
uint8_t
code
,
const
gnrc_pktsnip_t
*
orig_pkt
)
{
gnrc_pktsnip_t
*
pkt
=
_dst_unr_build
(
code
,
orig_pkt
);
DEBUG
(
"gnrc_icmpv6_error: trying to send destination unreachable error
\n
"
);
_send
(
pkt
);
}
...
...
@@ -141,6 +148,7 @@ void gnrc_icmpv6_error_pkt_too_big_send(uint32_t mtu,
{
gnrc_pktsnip_t
*
pkt
=
_pkt_too_big_build
(
mtu
,
orig_pkt
);
DEBUG
(
"gnrc_icmpv6_error: trying to send packet too big error
\n
"
);
_send
(
pkt
);
}
...
...
@@ -149,6 +157,7 @@ void gnrc_icmpv6_error_time_exc_send(uint8_t code,
{
gnrc_pktsnip_t
*
pkt
=
_time_exc_build
(
code
,
orig_pkt
);
DEBUG
(
"gnrc_icmpv6_error: trying to send time exceeded error
\n
"
);
_send
(
pkt
);
}
...
...
@@ -157,6 +166,7 @@ void gnrc_icmpv6_error_param_prob_send(uint8_t code, void *ptr,
{
gnrc_pktsnip_t
*
pkt
=
_param_prob_build
(
code
,
ptr
,
orig_pkt
);
DEBUG
(
"gnrc_icmpv6_error: trying to send parameter problem error
\n
"
);
_send
(
pkt
);
}
...
...
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