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
83
Issues
83
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
b1968dd5
Commit
b1968dd5
authored
Oct 29, 2019
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmp/ptp: fill grandmasterID
parent
9407bcc1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
snmp_objects.tex
doc/wrs_failures/snmp_objects.tex
+1
-1
snmp_shmem.c
userspace/snmpd/snmp_shmem.c
+9
-0
snmp_shmem.h
userspace/snmpd/snmp_shmem.h
+1
-0
wrsPtpDataTable.c
userspace/snmpd/wrsPtpDataTable.c
+3
-1
No files found.
doc/wrs_failures/snmp_objects.tex
View file @
b1968dd5
...
...
@@ -589,7 +589,7 @@
\snmpentrye
{
WR-SWITCH-MIB
}{
wrsPtpDataTable
}{
wrsPtpPortName.<n>
}{
The port on which the instance is running.
}
\snmpentrye
{
WR-SWITCH-MIB
}{
wrsPtpDataTable
}{
wrsPtpGrandmasterID.<n>
}{
Not implemented
.
}
ID of the PTP Grandmaster in the network
.
}
\snmpentrye
{
WR-SWITCH-MIB
}{
wrsPtpDataTable
}{
wrsPtpOwnID.<n>
}{
Not implemented.
}
\snmpentrye
{
WR-SWITCH-MIB
}{
wrsPtpDataTable
}{
wrsPtpMode.<n>
}{}
...
...
userspace/snmpd/snmp_shmem.c
View file @
b1968dd5
...
...
@@ -11,6 +11,8 @@ int hal_nports_local;
struct
wrs_shm_head
*
ppsi_head
;
static
struct
pp_globals
*
ppg
;
struct
pp_instance
*
ppsi_ppi
;
parentDS_t
*
ppsi_parentDS
;
int
*
ppsi_ppi_nlinks
;
/* RTUd */
...
...
@@ -128,6 +130,13 @@ static int init_shm_ppsi(void)
}
/* use pointer instead of copying */
ppsi_ppi_nlinks
=
&
(
ppg
->
nlinks
);
ppsi_parentDS
=
wrs_shm_follow
(
ppsi_head
,
ppg
->
parentDS
);
if
(
!
ppsi_parentDS
)
{
snmp_log
(
LOG_ERR
,
"SNMP: "
SL_ER
"Cannot follow ppsi_parentDS in shmem.
\n
"
);
return
5
;
}
return
0
;
}
...
...
userspace/snmpd/snmp_shmem.h
View file @
b1968dd5
...
...
@@ -16,6 +16,7 @@ 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
;
/* RTUd */
...
...
userspace/snmpd/wrsPtpDataTable.c
View file @
b1968dd5
...
...
@@ -132,7 +132,9 @@ time_t wrsPtpDataTable_data_fill(unsigned int *n_rows)
ppsi_i
->
servo
);
/* wrsPtpGrandmasterID */
//TODO
memcpy
(
&
ptp_a
[
si
].
wrsPtpGrandmasterID
,
&
ppsi_parentDS
->
grandmasterIdentity
,
sizeof
(
ClockIdentity
));
/* wrsPtpOwnID */
//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