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
bac7d620
Commit
bac7d620
authored
Sep 27, 2019
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Discard incoming messages for DISABLED/INITIALIZING/FAULTY states
parent
e2be4238
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
fsm.c
fsm.c
+13
-0
No files found.
fsm.c
View file @
bac7d620
...
...
@@ -177,6 +177,19 @@ static int pp_packet_prefilter(struct pp_instance *ppi)
}
}
/** 9.2.5 State machines
* INITIALIZING: No port of the clock shall place any PTP messages on its communication path.
* FAULTY: A port in this state shall not place any PTP messages except for
* management messages that are a required response to another management message on its
* communication path
* DISABLED: The port shall not place any messages on its communication path
*/
if
(
ppi
->
state
==
PPS_INITIALIZING
||
ppi
->
state
==
PPS_DISABLED
||
ppi
->
state
==
PPS_FAULTY
)
{
pp_printf
(
"JCB:%s:%d:%s Ignore message (state=%d)
\n
"
,
__func__
,
__LINE__
,
ppi
->
port_name
,
ppi
->
state
);
return
-
1
;
/* ignore messages all messages */
}
return
0
;
}
...
...
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