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
0ad2eb51
Commit
0ad2eb51
authored
Mar 02, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdelay: removed redundant field in ppi
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
6cbba4d7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
8 deletions
+5
-8
pp-instance.h
include/ppsi/pp-instance.h
+0
-1
hooks.c
proto-ext-whiterabbit/hooks.c
+3
-4
common-fun.c
proto-standard/common-fun.c
+0
-1
msg.c
proto-standard/msg.c
+2
-2
No files found.
include/ppsi/pp-instance.h
View file @
0ad2eb51
...
...
@@ -174,7 +174,6 @@ struct pp_instance {
UInteger16
sent_seq
[
__PP_NR_MESSAGES_TYPES
];
/* last sent this type */
MsgHeader
received_ptp_header
;
MsgHeader
pdelay_req_hdr
;
char
*
iface_name
;
/* for direct actions on hardware */
char
*
port_name
;
/* for diagnostics, mainly */
...
...
proto-ext-whiterabbit/hooks.c
View file @
0ad2eb51
...
...
@@ -74,10 +74,9 @@ static int wr_listening(struct pp_instance *ppi, unsigned char *pkt, int plen)
static
int
wr_handle_preq
(
struct
pp_instance
*
ppi
)
{
msg_copy_header
(
&
ppi
->
pdelay_req_hdr
,
&
ppi
->
received_ptp_header
);
ppi
->
pdelay_req_hdr
.
correctionfield
.
msb
=
0
;
ppi
->
pdelay_req_hdr
.
correctionfield
.
lsb
=
phase_to_cf_units
(
ppi
->
last_rcv_time
.
phase
);
ppi
->
received_ptp_header
.
correctionfield
.
msb
=
0
;
ppi
->
received_ptp_header
.
correctionfield
.
lsb
=
phase_to_cf_units
(
ppi
->
last_rcv_time
.
phase
);
msg_issue_pdelay_resp
(
ppi
,
&
ppi
->
last_rcv_time
);
msg_issue_pdelay_resp_followup
(
ppi
,
&
ppi
->
last_snt_time
);
...
...
proto-standard/common-fun.c
View file @
0ad2eb51
...
...
@@ -233,7 +233,6 @@ int st_com_peer_handle_preq(struct pp_instance *ppi, unsigned char *buf,
if
(
len
<
PP_PDELAY_REQ_LENGTH
)
return
-
1
;
msg_copy_header
(
&
ppi
->
pdelay_req_hdr
,
&
ppi
->
received_ptp_header
);
msg_issue_pdelay_resp
(
ppi
,
&
ppi
->
last_rcv_time
);
msg_issue_pdelay_resp_followup
(
ppi
,
&
ppi
->
last_snt_time
);
...
...
proto-standard/msg.c
View file @
0ad2eb51
...
...
@@ -517,7 +517,7 @@ int msg_issue_pdelay_resp_followup(struct pp_instance *ppi, TimeInternal * time)
Timestamp
prec_orig_tstamp
;
from_TimeInternal
(
time
,
&
prec_orig_tstamp
);
msg_pack_pdelay_resp_follow_up
(
ppi
,
&
ppi
->
pdelay_req_hd
r
,
msg_pack_pdelay_resp_follow_up
(
ppi
,
&
ppi
->
received_ptp_heade
r
,
&
prec_orig_tstamp
);
return
__send_and_log
(
ppi
,
PP_PDELAY_RESP_FOLLOW_UP_LENGTH
,
...
...
@@ -570,7 +570,7 @@ int msg_issue_pdelay_resp(struct pp_instance *ppi, TimeInternal * time)
Timestamp
rcv_tstamp
;
from_TimeInternal
(
time
,
&
rcv_tstamp
);
msg_pack_pdelay_resp
(
ppi
,
&
ppi
->
pdelay_req_hd
r
,
&
rcv_tstamp
);
msg_pack_pdelay_resp
(
ppi
,
&
ppi
->
received_ptp_heade
r
,
&
rcv_tstamp
);
return
__send_and_log
(
ppi
,
PP_PDELAY_RESP_LENGTH
,
PPM_PDELAY_RESP
,
PP_NP_EVT
);
...
...
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