Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
ca86ffd2
Commit
ca86ffd2
authored
Jun 11, 2016
by
Davide Ciminaghi
Committed by
Alessandro Rubini
Sep 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compliance, 11.4.3: force responseOriginTimestamp to zero for p2p 1-step
parent
6a789557
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
common-fun.c
proto-standard/common-fun.c
+7
-1
No files found.
proto-standard/common-fun.c
View file @
ca86ffd2
...
@@ -218,8 +218,14 @@ int st_com_peer_handle_pres(struct pp_instance *ppi, unsigned char *buf,
...
@@ -218,8 +218,14 @@ int st_com_peer_handle_pres(struct pp_instance *ppi, unsigned char *buf,
ppi
->
t6_cf
=
phase_to_cf_units
(
ppi
->
last_rcv_time
.
phase
);
ppi
->
t6_cf
=
phase_to_cf_units
(
ppi
->
last_rcv_time
.
phase
);
if
((
hdr
->
flagField
[
0
]
&
PP_TWO_STEP_FLAG
)
!=
0
)
if
((
hdr
->
flagField
[
0
]
&
PP_TWO_STEP_FLAG
)
!=
0
)
ppi
->
flags
|=
PPI_FLAG_WAITING_FOR_RF_UP
;
ppi
->
flags
|=
PPI_FLAG_WAITING_FOR_RF_UP
;
else
else
{
ppi
->
flags
&=
~
PPI_FLAG_WAITING_FOR_RF_UP
;
ppi
->
flags
&=
~
PPI_FLAG_WAITING_FOR_RF_UP
;
/*
* Make sure responseOriginTimestamp is forced to 0
* for one-step responders
*/
memset
(
&
ppi
->
t5
,
0
,
sizeof
(
ppi
->
t5
));
}
/* Save correctionField of pdelay_resp, see 11.4.3 d 3/4 */
/* Save correctionField of pdelay_resp, see 11.4.3 d 3/4 */
cField_to_TimeInternal
(
&
ppi
->
cField
,
hdr
->
correctionfield
);
cField_to_TimeInternal
(
&
ppi
->
cField
,
hdr
->
correctionfield
);
...
...
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