What's the difference between NETSNMP_NO_WRITE_SUPPORT and NETSNMP_DISABLE_SET_SUPPORT?

Bill Fenner <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <CAF4SogaZw7xEGofLBfD2PHhDjagj_NqdrMWQmVWO_q-rza7_Qw@mail.gmail.com>
Stepping back one step from the fact that they enable/disable different
bits of code: is there a semantic difference intended here, or was this
some feature collision and both were retained? Is there a WRITE that is not
a SET?

NETSNMP_NO_WRITE_SUPPORT came in with the features/minimalist stuff;
NETSNMP_DISABLE_SET_SUPPORT was already there as can be seen from diffs like

@@ -3432,6 +3485,7 @@ handle_pdu(netsnmp_agent_session *asp)
         status = handle_getnext_loop(asp);
         break;
+#ifndef NETSNMP_NO_WRITE_SUPPORT
     case SNMP_MSG_SET:
 #ifdef NETSNMP_DISABLE_SET_SUPPORT
         return SNMP_ERR_NOTWRITABLE;

I guess this diff snippet also gives us a hint as to what’s the difference:
with NETSNMP_NO_WRITE_SUPPORT a set PDU is supposed to be handled as though
it was an unknown PDU type, and with NETSNMP_DISABLE_SET_SUPPORT we are
allowed to know about set PDUs and return an error?

Bill
​

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.