Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
ptp-noposix
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
ppsi
ptp-noposix
Commits
1b5f4e3e
Commit
1b5f4e3e
authored
Apr 27, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ptpd: disable BMC for Master-only ports
parent
f9e8ef9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
bmc.c
PTPWRd/bmc.c
+7
-0
No files found.
PTPWRd/bmc.c
View file @
1b5f4e3e
...
...
@@ -603,6 +603,13 @@ UInteger8 bmcStateDecision (MsgHeader *header,MsgAnnounce *announce, UInteger16
return
PTP_SLAVE
;
}
if
(
ptpPortDS
->
wrConfig
==
WR_M_ONLY
)
{
PTPD_TRACE
(
TRACE_BMC
,
ptpPortDS
,
"SDA: .. Master Only Mode: PTP_MASTER
\n
"
);
m1
(
ptpPortDS
);
return
PTP_MASTER
;
}
if
((
!
ptpPortDS
->
number_foreign_records
)
&&
(
ptpPortDS
->
portState
==
PTP_LISTENING
))
//(2)
{
PTPD_TRACE
(
TRACE_BMC
,
ptpPortDS
,
"SDA: .. No foreing nasters : PTP_LISTENING [3]
\n
"
);
...
...
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