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
50
Issues
50
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
7905978c
Commit
7905978c
authored
May 17, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: fix old comments in msg.c
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
23f92684
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
msg.c
proto-standard/msg.c
+8
-8
No files found.
proto-standard/msg.c
View file @
7905978c
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#include <ppsi/ppsi.h>
#include <ppsi/ppsi.h>
#include "common-fun.h"
#include "common-fun.h"
/* Unpack header from in buffer to
msg_tm
p_header field */
/* Unpack header from in buffer to
receieved_pt
p_header field */
int
msg_unpack_header
(
struct
pp_instance
*
ppi
,
void
*
buf
,
int
plen
)
int
msg_unpack_header
(
struct
pp_instance
*
ppi
,
void
*
buf
,
int
plen
)
{
{
MsgHeader
*
hdr
=
&
ppi
->
received_ptp_header
;
MsgHeader
*
hdr
=
&
ppi
->
received_ptp_header
;
...
@@ -159,7 +159,7 @@ static int msg_pack_announce(struct pp_instance *ppi)
...
@@ -159,7 +159,7 @@ static int msg_pack_announce(struct pp_instance *ppi)
return
PP_ANNOUNCE_LENGTH
;
return
PP_ANNOUNCE_LENGTH
;
}
}
/* Unpack Announce message from in buffer of ppi to
msgtmp. Announc
e */
/* Unpack Announce message from in buffer of ppi to
internal structur
e */
void
msg_unpack_announce
(
void
*
buf
,
MsgAnnounce
*
ann
)
void
msg_unpack_announce
(
void
*
buf
,
MsgAnnounce
*
ann
)
{
{
ann
->
originTimestamp
.
secondsField
.
msb
=
ann
->
originTimestamp
.
secondsField
.
msb
=
...
@@ -251,7 +251,7 @@ void msg_pack_pdelay_resp_follow_up(struct pp_instance *ppi,
...
@@ -251,7 +251,7 @@ void msg_pack_pdelay_resp_follow_up(struct pp_instance *ppi,
*
(
UInteger16
*
)
(
buf
+
52
)
=
htons
(
hdr
->
sourcePortIdentity
.
portNumber
);
*
(
UInteger16
*
)
(
buf
+
52
)
=
htons
(
hdr
->
sourcePortIdentity
.
portNumber
);
}
}
/* Unpack FollowUp message from in buffer of ppi to
msgtmp.follow
*/
/* Unpack FollowUp message from in buffer of ppi to
internal structure
*/
void
msg_unpack_follow_up
(
void
*
buf
,
MsgFollowUp
*
flwup
)
void
msg_unpack_follow_up
(
void
*
buf
,
MsgFollowUp
*
flwup
)
{
{
flwup
->
preciseOriginTimestamp
.
secondsField
.
msb
=
flwup
->
preciseOriginTimestamp
.
secondsField
.
msb
=
...
@@ -262,7 +262,7 @@ void msg_unpack_follow_up(void *buf, MsgFollowUp *flwup)
...
@@ -262,7 +262,7 @@ void msg_unpack_follow_up(void *buf, MsgFollowUp *flwup)
htonl
(
*
(
UInteger32
*
)
(
buf
+
40
));
htonl
(
*
(
UInteger32
*
)
(
buf
+
40
));
}
}
/* Unpack PDelay
Resp FollowUp message from in buffer of ppi to msgtmp.follow
*/
/* Unpack PDelay
RespFollowUp message from in buffer of ppi to internal struct
*/
void
msg_unpack_pdelay_resp_follow_up
(
void
*
buf
,
void
msg_unpack_pdelay_resp_follow_up
(
void
*
buf
,
MsgPDelayRespFollowUp
*
pdelay_resp_flwup
)
MsgPDelayRespFollowUp
*
pdelay_resp_flwup
)
{
{
...
@@ -413,7 +413,7 @@ static void msg_pack_delay_resp(struct pp_instance *ppi,
...
@@ -413,7 +413,7 @@ static void msg_pack_delay_resp(struct pp_instance *ppi,
htons
(
hdr
->
sourcePortIdentity
.
portNumber
);
htons
(
hdr
->
sourcePortIdentity
.
portNumber
);
}
}
/* Unpack delayReq message from in buffer of ppi to
msgtmp.req
*/
/* Unpack delayReq message from in buffer of ppi to
internal structure
*/
void
msg_unpack_delay_req
(
void
*
buf
,
MsgDelayReq
*
delay_req
)
void
msg_unpack_delay_req
(
void
*
buf
,
MsgDelayReq
*
delay_req
)
{
{
delay_req
->
originTimestamp
.
secondsField
.
msb
=
delay_req
->
originTimestamp
.
secondsField
.
msb
=
...
@@ -424,7 +424,7 @@ void msg_unpack_delay_req(void *buf, MsgDelayReq *delay_req)
...
@@ -424,7 +424,7 @@ void msg_unpack_delay_req(void *buf, MsgDelayReq *delay_req)
htonl
(
*
(
UInteger32
*
)
(
buf
+
40
));
htonl
(
*
(
UInteger32
*
)
(
buf
+
40
));
}
}
/* Unpack PDelayReq message from in buffer of ppi to
msgtmp.req
*/
/* Unpack PDelayReq message from in buffer of ppi to
internal structure
*/
void
msg_unpack_pdelay_req
(
void
*
buf
,
MsgPDelayReq
*
pdelay_req
)
void
msg_unpack_pdelay_req
(
void
*
buf
,
MsgPDelayReq
*
pdelay_req
)
{
{
pdelay_req
->
originTimestamp
.
secondsField
.
msb
=
pdelay_req
->
originTimestamp
.
secondsField
.
msb
=
...
@@ -435,7 +435,7 @@ void msg_unpack_pdelay_req(void *buf, MsgPDelayReq * pdelay_req)
...
@@ -435,7 +435,7 @@ void msg_unpack_pdelay_req(void *buf, MsgPDelayReq * pdelay_req)
htonl
(
*
(
UInteger32
*
)
(
buf
+
40
));
htonl
(
*
(
UInteger32
*
)
(
buf
+
40
));
}
}
/* Unpack delayResp message from IN buffer of ppi to
msgtmp.presp
*/
/* Unpack delayResp message from IN buffer of ppi to
internal structure
*/
void
msg_unpack_delay_resp
(
void
*
buf
,
MsgDelayResp
*
resp
)
void
msg_unpack_delay_resp
(
void
*
buf
,
MsgDelayResp
*
resp
)
{
{
resp
->
receiveTimestamp
.
secondsField
.
msb
=
resp
->
receiveTimestamp
.
secondsField
.
msb
=
...
@@ -450,7 +450,7 @@ void msg_unpack_delay_resp(void *buf, MsgDelayResp *resp)
...
@@ -450,7 +450,7 @@ void msg_unpack_delay_resp(void *buf, MsgDelayResp *resp)
htons
(
*
(
UInteger16
*
)
(
buf
+
52
));
htons
(
*
(
UInteger16
*
)
(
buf
+
52
));
}
}
/* Unpack PDelayResp message from IN buffer of ppi to
msgtmp.presp
*/
/* Unpack PDelayResp message from IN buffer of ppi to
internal structure
*/
void
msg_unpack_pdelay_resp
(
void
*
buf
,
MsgPDelayResp
*
presp
)
void
msg_unpack_pdelay_resp
(
void
*
buf
,
MsgPDelayResp
*
presp
)
{
{
presp
->
requestReceiptTimestamp
.
secondsField
.
msb
=
presp
->
requestReceiptTimestamp
.
secondsField
.
msb
=
...
...
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