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
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
Software for White Rabbit PTP Core
Commits
6f17361c
Commit
6f17361c
authored
Oct 11, 2018
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/snmp: wrpcSdbGroup cleanup
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
2f2777b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
WR-WRPC-MIB.txt
lib/WR-WRPC-MIB.txt
+10
-8
snmp.c
lib/snmp.c
+8
-0
No files found.
lib/WR-WRPC-MIB.txt
View file @
6f17361c
...
...
@@ -789,12 +789,12 @@ wrpcSdbApply OBJECT-TYPE
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Make a change to a
init script
writeToFlash -
Add a defined command from wrpcInitScriptConfigLine to the init script
eraseFlash - Erase
init script in the flash
.
"Make a change to a
sdbfs
writeToFlash -
Generate sdb in flash; requires other OIDs in this group to be set first.
eraseFlash - Erase
flash; requires other OIDs in this group to be set first
.
applySuccessful - Configuration applied successfully.
applyFailed - Failed to update
init script
.
applyFailedEmptyParam - Failed to
write to SDB, some params are empty is
empty.
applyFailed - Failed to update
flash
.
applyFailedEmptyParam - Failed to
update flash, some params are
empty.
"
::= { wrpcSdbGroup 1 }
...
...
@@ -808,7 +808,7 @@ wrpcSdbMemType OBJECT-TYPE
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Mem type"
"Mem
ory
type"
::= { wrpcSdbGroup 2 }
wrpcSdbBaseAddr OBJECT-TYPE
...
...
@@ -816,7 +816,7 @@ wrpcSdbBaseAddr OBJECT-TYPE
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Base addr"
"Base addr
ess
"
::= { wrpcSdbGroup 3 }
wrpcSdbParam OBJECT-TYPE
...
...
@@ -824,7 +824,9 @@ wrpcSdbParam OBJECT-TYPE
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Param"
"The meaning of this OID depends on the type of selected storage.
It is either the sector size in kilobytes (for Flash) or I2C chip
address (for I2C EEPROM)."
::= { wrpcSdbGroup 4 }
...
...
lib/snmp.c
View file @
6f17361c
...
...
@@ -1485,6 +1485,14 @@ static int set_sdb(uint8_t *buf, struct snmp_oid *obj)
default:
*
apply_mode
=
applyFailed
;
}
if
(
*
apply_mode
==
applySuccessful
)
{
/* If apply was successful, clear sdb params */
sdb_mem_type
=
-
1
;
sdb_base_addr
=
-
1
;
sdb_param
=
-
1
;
}
return
ret
;
}
...
...
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