From 84397ef013bde5e8fef0d1a740b8dc836600789f Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Mon, 11 Jan 2016 20:28:01 +0100 Subject: [PATCH] SNMP MIB Compiler: Treat read-create nodes as read-only --- src/apps/snmp/LwipMibCompiler/LwipMibCompiler/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apps/snmp/LwipMibCompiler/LwipMibCompiler/Program.cs b/src/apps/snmp/LwipMibCompiler/LwipMibCompiler/Program.cs index 008b5ecc..ebc07b6a 100644 --- a/src/apps/snmp/LwipMibCompiler/LwipMibCompiler/Program.cs +++ b/src/apps/snmp/LwipMibCompiler/LwipMibCompiler/Program.cs @@ -348,6 +348,10 @@ namespace LwipMibCompiler { result.AccessMode = SnmpAccessMode.ReadOnly; } + else if (ote.Access == MaxAccess.readCreate) + { + result.AccessMode = SnmpAccessMode.ReadOnly; + } else if (ignoreAccessibleFlag && (ote.Access == MaxAccess.notAccessible)) { result.AccessMode = SnmpAccessMode.NotAccessible;