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
c6834256
Commit
c6834256
authored
Jun 12, 2016
by
Davide Ciminaghi
Committed by
Alessandro Rubini
Sep 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compliance, 17.4.2, NOTE: discard messages with alternateMasterFlag set
We don't support alternate masters at present.
parent
3707e812
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
constants.h
include/ppsi/constants.h
+1
-0
msg.c
proto-standard/msg.c
+9
-0
No files found.
include/ppsi/constants.h
View file @
c6834256
...
...
@@ -64,6 +64,7 @@ enum pp_timeouts {
__PP_TO_ARRAY_SIZE
,
};
#define PP_ALTERNATE_MASTER_FLAG 1
#define PP_TWO_STEP_FLAG 2
#define PP_VERSION_PTP 2
...
...
proto-standard/msg.c
View file @
c6834256
...
...
@@ -45,6 +45,15 @@ int msg_unpack_header(struct pp_instance *ppi, void *buf, int plen)
if
(
hdr
->
domainNumber
!=
GDSDEF
(
GLBS
(
ppi
))
->
domainNumber
)
return
-
1
;
/*
* Alternate masters (17.4) not supported
* 17.4.2, NOTE:
* A slave node that does not want to use information from alternate
* masters merely ignores all messages with alternateMasterFlag TRUE.
*/
if
(
hdr
->
flagField
[
0
]
&
PP_ALTERNATE_MASTER_FLAG
)
return
-
1
;
/*
* If the message is from us, we should discard it.
* The best way to do that is comparing the mac address,
...
...
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