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
780e4de2
Commit
780e4de2
authored
Mar 04, 2020
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SNMP: Use PPSi time arithmetic library
parent
8580fc11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
Makefile
userspace/snmpd/Makefile
+1
-0
wrsPtpDataTable.c
userspace/snmpd/wrsPtpDataTable.c
+0
-8
No files found.
userspace/snmpd/Makefile
View file @
780e4de2
...
...
@@ -53,6 +53,7 @@ SOURCES = \
wrsPortStatusTable.c
\
wrsPtpInstanceTable.c
\
init.c
\
../ppsi/lib/time-arith.c
MIBS
=
WR-SWITCH-MIB.txt
...
...
userspace/snmpd/wrsPtpDataTable.c
View file @
780e4de2
...
...
@@ -33,14 +33,6 @@ static struct pickinfo wrsPtpDataTable_pickinfo[] = {
};
//FIXME: make a library in ppsi with all such functions, use it all around
int64_t
pp_time_to_picos
(
struct
pp_time
*
ts
)
{
return
ts
->
secs
*
PP_NSEC_PER_SEC
+
((
ts
->
scaled_nsecs
*
1000
+
0x8000
)
>>
TIME_INTERVAL_FRACBITS
);
}
static
int32_t
int_saturate
(
int64_t
value
)
{
if
(
value
>=
INT32_MAX
)
...
...
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