SNMP: fix SNMP set access of table entries

[Conversion of ethernet address (PhysAddress) and IP address (IPAddress) crashes agent](https://github.com/clicon/clixon/issues/340)
Hwaddress and IP adress for scalar and table set should now work
This commit is contained in:
Olof hagsand 2022-06-22 09:57:25 +02:00
parent fa87b7d59f
commit f6fe9f6a64
8 changed files with 335 additions and 94 deletions

View file

@ -214,7 +214,15 @@ ifStackStatus OBJECT-TYPE
interfaces, and many implementations will choose not to
support write-access for any type of interface."
::= { clixonExampleScalars 12 }
ifIpAddr OBJECT-TYPE
SYNTAX InetAddress
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Example IP"
::= { clixonExampleScalars 13 }
--
-- Example Tables
--
@ -265,6 +273,7 @@ nsIETFWGChair2 OBJECT-TYPE
"The other name, if one exists, of the chairs for the IETF
working group."
::= { clixonIETFWGEntry 3 }
--
-- A table used in a table_iterator example
-- (agent/mibgroup/examples/clixonHostsTable*.[ch])