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
d5314df9
Commit
d5314df9
authored
Mar 07, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bmc: cleanup copy_d0()
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
b25a249b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
bmc.c
proto-standard/bmc.c
+8
-13
No files found.
proto-standard/bmc.c
View file @
d5314df9
...
...
@@ -74,21 +74,16 @@ void s1(struct pp_instance *ppi, MsgHeader *hdr, MsgAnnounce *ann)
/* Copy local data set into header and ann message. 9.3.4 table 12. */
void
copy_d0
(
struct
pp_instance
*
ppi
,
MsgHeader
*
hdr
,
MsgAnnounce
*
ann
)
static
void
copy_d0
(
struct
pp_instance
*
ppi
,
MsgHeader
*
hdr
,
MsgAnnounce
*
ann
)
{
ann
->
grandmasterPriority1
=
DSDEF
(
ppi
)
->
priority1
;
memcpy
(
&
ann
->
grandmasterIdentity
,
&
DSDEF
(
ppi
)
->
clockIdentity
,
PP_CLOCK_IDENTITY_LENGTH
);
ann
->
grandmasterClockQuality
.
clockClass
=
DSDEF
(
ppi
)
->
clockQuality
.
clockClass
;
ann
->
grandmasterClockQuality
.
clockAccuracy
=
DSDEF
(
ppi
)
->
clockQuality
.
clockAccuracy
;
ann
->
grandmasterClockQuality
.
offsetScaledLogVariance
=
DSDEF
(
ppi
)
->
clockQuality
.
offsetScaledLogVariance
;
ann
->
grandmasterPriority2
=
DSDEF
(
ppi
)
->
priority2
;
struct
DSDefault
*
defds
=
DSDEF
(
ppi
);
ann
->
grandmasterIdentity
=
defds
->
clockIdentity
;
ann
->
grandmasterClockQuality
=
defds
->
clockQuality
;
ann
->
grandmasterPriority1
=
defds
->
priority1
;
ann
->
grandmasterPriority2
=
defds
->
priority2
;
ann
->
stepsRemoved
=
0
;
memcpy
(
&
hdr
->
sourcePortIdentity
.
clockIdentity
,
&
DSDEF
(
ppi
)
->
clockIdentity
,
PP_CLOCK_IDENTITY_LENGTH
);
hdr
->
sourcePortIdentity
.
clockIdentity
=
defds
->
clockIdentity
;
}
...
...
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