Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
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
Software for White Rabbit PTP Core
Commits
440f4126
Commit
440f4126
authored
Apr 18, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/snmp: add wrpcVersionSwBuildBy
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
e556956d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
WR-WRPC-MIB.txt
lib/WR-WRPC-MIB.txt
+8
-8
snmp.c
lib/snmp.c
+2
-0
No files found.
lib/WR-WRPC-MIB.txt
View file @
440f4126
...
...
@@ -58,14 +58,14 @@ wrpcVersionSwVersion OBJECT-TYPE
"The software version, as returned from 'git describe' at build time"
::= { wrpcVersionGroup 2 }
--x
wrpcVersionSwBuildBy OBJECT-TYPE
--x
SYNTAX DisplayString (SIZE (0..31))
--x
MAX-ACCESS read-only
--x
STATUS current
--x
DESCRIPTION
--x
"The software build by, as returned from
--x
'git config -get-all user.name' at build time"
--x
::= { wrpcVersionGroup 3 }
wrpcVersionSwBuildBy OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..31))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The software build by, as returned from
'git config -get-all user.name' at build time"
::= { wrpcVersionGroup 3 }
--x wrpcVersionSwBuildDate OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
...
...
lib/snmp.c
View file @
440f4126
...
...
@@ -130,12 +130,14 @@ static int set_p(uint8_t *buf, struct snmp_oid *obj);
static
uint8_t
oid_wrpcVersionHwType
[]
=
{
0x2B
,
6
,
1
,
4
,
1
,
96
,
101
,
1
,
1
,
1
,
0
};
static
uint8_t
oid_wrpcVersionSwVersion
[]
=
{
0x2B
,
6
,
1
,
4
,
1
,
96
,
101
,
1
,
1
,
2
,
0
};
static
uint8_t
oid_wrpcVersionSwBuildBy
[]
=
{
0x2B
,
6
,
1
,
4
,
1
,
96
,
101
,
1
,
1
,
3
,
0
};
/* NOTE: to have SNMP_GET_NEXT working properly this array has to be sorted by
OIDs */
static
struct
snmp_oid
oid_array
[]
=
{
OID_FIELD_VAR
(
oid_wrpcVersionHwType
,
get_p
,
NO_SET
,
ASN_OCTET_STR
,
&
snmp_hw_type
),
OID_FIELD_VAR
(
oid_wrpcVersionSwVersion
,
get_pp
,
NO_SET
,
ASN_OCTET_STR
,
&
build_revision
),
OID_FIELD_VAR
(
oid_wrpcVersionSwBuildBy
,
get_pp
,
NO_SET
,
ASN_OCTET_STR
,
&
build_by
),
{
0
,
}
};
...
...
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