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
709fc237
Commit
709fc237
authored
Oct 30, 2019
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmp/ptp: fill OwnID OID
parent
b1968dd5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
snmp_objects.tex
doc/wrs_failures/snmp_objects.tex
+2
-2
snmp_shmem.c
userspace/snmpd/snmp_shmem.c
+8
-0
snmp_shmem.h
userspace/snmpd/snmp_shmem.h
+2
-1
wrsPtpDataTable.c
userspace/snmpd/wrsPtpDataTable.c
+3
-1
No files found.
doc/wrs_failures/snmp_objects.tex
View file @
709fc237
...
...
@@ -589,9 +589,9 @@
\snmpentrye
{
WR-SWITCH-MIB
}{
wrsPtpDataTable
}{
wrsPtpPortName.<n>
}{
The port on which the instance is running.
}
\snmpentrye
{
WR-SWITCH-MIB
}{
wrsPtpDataTable
}{
wrsPtpGrandmasterID.<n>
}{
I
D
of the PTP Grandmaster in the network.
}
I
dentity
of the PTP Grandmaster in the network.
}
\snmpentrye
{
WR-SWITCH-MIB
}{
wrsPtpDataTable
}{
wrsPtpOwnID.<n>
}{
Not implemented
.
}
PTP clock identity
.
}
\snmpentrye
{
WR-SWITCH-MIB
}{
wrsPtpDataTable
}{
wrsPtpMode.<n>
}{}
\snmpentrye
{
WR-SWITCH-MIB
}{
wrsPtpDataTable
}{
wrsPtpServoState.<n>
}{
PTP servo
state as string
}
...
...
userspace/snmpd/snmp_shmem.c
View file @
709fc237
...
...
@@ -12,6 +12,7 @@ struct wrs_shm_head *ppsi_head;
static
struct
pp_globals
*
ppg
;
struct
pp_instance
*
ppsi_ppi
;
parentDS_t
*
ppsi_parentDS
;
defaultDS_t
*
ppsi_defaultDS
;
int
*
ppsi_ppi_nlinks
;
...
...
@@ -137,6 +138,13 @@ static int init_shm_ppsi(void)
"Cannot follow ppsi_parentDS in shmem.
\n
"
);
return
5
;
}
ppsi_defaultDS
=
wrs_shm_follow
(
ppsi_head
,
ppg
->
defaultDS
);
if
(
!
ppsi_defaultDS
)
{
snmp_log
(
LOG_ERR
,
"SNMP: "
SL_ER
"Cannot follow ppsi_defaultDS in shmem.
\n
"
);
return
5
;
}
return
0
;
}
...
...
userspace/snmpd/snmp_shmem.h
View file @
709fc237
...
...
@@ -16,8 +16,9 @@ extern int hal_nports_local;
/* PPSI */
extern
struct
wrs_shm_head
*
ppsi_head
;
extern
struct
pp_instance
*
ppsi_ppi
;
extern
parentDS_t
*
ppsi_parentDS
;
extern
int
*
ppsi_ppi_nlinks
;
extern
parentDS_t
*
ppsi_parentDS
;
extern
defaultDS_t
*
ppsi_defaultDS
;
/* RTUd */
struct
wrs_shm_head
*
rtud_head
;
...
...
userspace/snmpd/wrsPtpDataTable.c
View file @
709fc237
...
...
@@ -137,7 +137,9 @@ time_t wrsPtpDataTable_data_fill(unsigned int *n_rows)
sizeof
(
ClockIdentity
));
/* wrsPtpOwnID */
//TODO
memcpy
(
&
ptp_a
[
si
].
wrsPtpOwnID
,
&
ppsi_defaultDS
->
clockIdentity
,
sizeof
(
ClockIdentity
));
/* wrsPtpMode */
//TODO
...
...
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