Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
6d442380
Commit
6d442380
authored
Aug 19, 2020
by
Antonin Décimo
Committed by
Juliusz Chroboczek
May 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show PC number.
parent
ceda3a02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
message.c
message.c
+5
-1
No files found.
message.c
View file @
6d442380
...
@@ -476,6 +476,7 @@ preparse_packet(const unsigned char *from, struct interface *ifp,
...
@@ -476,6 +476,7 @@ preparse_packet(const unsigned char *from, struct interface *ifp,
break
;
break
;
}
}
if
(
type
==
MESSAGE_PC
)
{
if
(
type
==
MESSAGE_PC
)
{
unsigned
int
pcnat
;
if
(
len
<
4
)
{
if
(
len
<
4
)
{
fprintf
(
stderr
,
"Received truncated PC TLV.
\n
"
);
fprintf
(
stderr
,
"Received truncated PC TLV.
\n
"
);
break
;
break
;
...
@@ -486,10 +487,13 @@ preparse_packet(const unsigned char *from, struct interface *ifp,
...
@@ -486,10 +487,13 @@ preparse_packet(const unsigned char *from, struct interface *ifp,
}
}
if
(
index
!=
NULL
)
if
(
index
!=
NULL
)
goto
done
;
goto
done
;
debugf
(
"Received PC from %s.
\n
"
,
format_address
(
from
));
pc
=
message
+
2
;
pc
=
message
+
2
;
index
=
message
+
6
;
index
=
message
+
6
;
index_len
=
len
-
4
;
index_len
=
len
-
4
;
memcpy
(
&
pcnat
,
pc
,
4
);
debugf
(
"Received PC %u from %s.
\n
"
,
ntohl
(
pcnat
),
format_address
(
from
));
}
else
if
(
type
==
MESSAGE_CHALLENGE_REQUEST
)
{
}
else
if
(
type
==
MESSAGE_CHALLENGE_REQUEST
)
{
debugf
(
"Received challenge request from %s.
\n
"
,
debugf
(
"Received challenge request from %s.
\n
"
,
format_address
(
from
));
format_address
(
from
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment