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
94984976
Commit
94984976
authored
Feb 24, 2017
by
Alessandro Rubini
Committed by
Adam Wujek
Mar 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msg.c: fix endianness while reading cField from frame
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
3447e609
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
msg.c
proto-standard/msg.c
+2
-2
No files found.
proto-standard/msg.c
View file @
94984976
...
...
@@ -24,8 +24,8 @@ int msg_unpack_header(struct pp_instance *ppi, void *buf, int plen)
memcpy
(
hdr
->
flagField
,
(
buf
+
6
),
PP_FLAG_FIELD_LENGTH
);
m
emcpy
(
&
msb
,
(
buf
+
8
),
4
);
memcpy
(
&
lsb
,
(
buf
+
12
),
4
);
m
sb
=
htonl
(
*
(
uint32_t
*
)(
buf
+
8
)
);
lsb
=
htonl
(
*
(
uint32_t
*
)(
buf
+
12
)
);
hdr
->
cField
.
secs
=
0LL
;
hdr
->
cField
.
scaled_nsecs
=
(
uint64_t
)
msb
<<
32
|
(
uint64_t
)
lsb
;
memcpy
(
&
hdr
->
sourcePortIdentity
.
clockIdentity
,
(
buf
+
20
),
...
...
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