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
54441176
Commit
54441176
authored
Apr 09, 2019
by
baujc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove master_msg() callback in state_master.c
parent
fbf9ee41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
state-master.c
proto-standard/state-master.c
+2
-10
No files found.
proto-standard/state-master.c
View file @
54441176
...
...
@@ -52,10 +52,11 @@ static int master_handle_announce(struct pp_instance *ppi, void *buf, int len)
static
int
master_handle_delay_request
(
struct
pp_instance
*
ppi
,
void
*
buf
,
int
len
)
{
if
(
ppi
->
state
==
PPS_MASTER
)
/* not pre-master */
if
(
ppi
->
state
==
PPS_MASTER
)
{
/* not pre-master */
if
(
msg_issue_delay_resp
(
ppi
,
&
ppi
->
last_rcv_time
)
==
0
&&
!
ppi
->
ext_enabled
)
{
ppi
->
link_state
=
PP_LSTATE_LINKED
;
}
}
return
0
;
}
...
...
@@ -101,14 +102,6 @@ int pp_master(struct pp_instance *ppi, void *buf, int len)
* PPM_NO_MESSAGE
*/
msgtype
=
ppi
->
received_ptp_header
.
messageType
;
if
(
is_ext_hook_available
(
ppi
,
master_msg
))
msgtype
=
ppi
->
ext_hooks
->
master_msg
(
ppi
,
buf
,
len
,
msgtype
);
if
(
msgtype
<
0
)
{
e
=
msgtype
;
len
=
0
;
e
=
PP_SEND_ERROR
;
/* well, "error" in general */
goto
out
;
}
/*
* The management of messages is now table-driven
...
...
@@ -122,7 +115,6 @@ int pp_master(struct pp_instance *ppi, void *buf, int len)
msgtype
);
}
out:
if
(
is_externalPortConfigurationEnabled
(
DSDEF
(
ppi
)))
{
if
(
e
==
PP_SEND_ERROR
||
e
==
PP_SEND_NO_STAMP
)
e
=
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