Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit Switch - Software
Commits
255e0399
Commit
255e0399
authored
Mar 05, 2020
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SNMP: wrsPtpClockOffsetPs correspond to the absolute value of the offset from master
parent
10b922f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
WR-SWITCH-MIB.txt
userspace/snmpd/WR-SWITCH-MIB.txt
+2
-2
wrsPtpDataTable.c
userspace/snmpd/wrsPtpDataTable.c
+3
-2
No files found.
userspace/snmpd/WR-SWITCH-MIB.txt
View file @
255e0399
...
...
@@ -2051,7 +2051,7 @@ wrsPtpSyncSource OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The
port
name that is currently the synchronization source"
"The
interface
name that is currently the synchronization source"
::= { wrsPtpDataEntry 9 }
wrsPtpClockOffsetPs OBJECT-TYPE
...
...
@@ -2059,7 +2059,7 @@ wrsPtpClockOffsetPs OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"
C
urrent clock offset from master, in picoseconds"
"
Absolute value of c
urrent clock offset from master, in picoseconds"
::= { wrsPtpDataEntry 10 }
wrsPtpClockOffsetPsHR OBJECT-TYPE
...
...
userspace/snmpd/wrsPtpDataTable.c
View file @
255e0399
...
...
@@ -159,8 +159,9 @@ time_t wrsPtpDataTable_data_fill(unsigned int *n_rows)
}
/* wrsPtpClockOffsetPs */
ptp_a
[
si
].
wrsPtpClockOffsetPs
=
pp_time_to_picos
(
&
ppsi_servo
->
offsetFromMaster
);
ptp_a
[
si
].
wrsPtpClockOffsetPs
=
pp_time_to_picos
(
&
ppsi_servo
->
offsetFromMaster
);
if
(
ptp_a
[
si
].
wrsPtpClockOffsetPs
<
0
)
ptp_a
[
si
].
wrsPtpClockOffsetPs
*=-
1
;
/* wrsPtpClockOffsetPsHR */
ptp_a
[
si
].
wrsPtpClockOffsetPsHR
=
...
...
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