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
b1573044
Commit
b1573044
authored
11 years ago
by
Christian Mehlis
Browse files
Options
Downloads
Patches
Plain Diff
ccnl: added 'content is dup' debug message
parent
2e1b0b51
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/ccn_lite/ccnl-core.c
+4
-2
4 additions, 2 deletions
sys/net/ccn_lite/ccnl-core.c
with
4 additions
and
2 deletions
sys/net/ccn_lite/ccnl-core.c
+
4
−
2
View file @
b1573044
...
...
@@ -1325,10 +1325,12 @@ int ccnl_core_RX_i_or_c(struct ccnl_relay_s *relay, struct ccnl_face_s *from,
from
->
stat
.
received_content
++
;
// CONFORM: Step 1:
for
(
c
=
relay
->
contents
;
c
;
c
=
c
->
next
)
for
(
c
=
relay
->
contents
;
c
;
c
=
c
->
next
)
{
if
(
buf_equal
(
c
->
pkt
,
buf
))
{
goto
Skip
;
// content is dup
DEBUGMSG
(
1
,
"content is dup: skip
\n
"
);
goto
Skip
;
}
}
c
=
ccnl_content_new
(
relay
,
&
buf
,
&
p
,
&
ppkd
,
content
,
contlen
);
...
...
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