Hello Net-SNMP Coders! I extended net-snmp so that it allows to configure the DSCP value of IP Differentiated Services (DiffServ) as defined in RFC 2474 and RFC 2475.
I searched the lists for any existing discussions on that topic and only found this unanswered post to the users list. https://sourceforge.net/p/net-snmp/mailman/message/29066936/ Hence, I thought I'd present the patch to this list and if this is of any interest to the community, I would appreciate feedback on the implementation and a hint how to add the new config option to the man page of snmp.conf. Then I can submit it to the net-snmp patches facility. About the attached patch: The library will register for configuration token "dscp INT" in snmp.conf during the "pre-mib" time. The latter was necessary so that the desired DSCP value was used on the various sockets regardless of the order of the config tokens in the file (e.g. trap/inform before dscp...). The integer value is stored in the data store and queried later when the sockets are created. This applies to both IPv4 and IPv6, and for UDP and TCP on top of it. While being at it, I tried cleaning up the "hack" with the external usage of _netsnmp_udp_sockopt_set(). Regards, Mario
config_dscp.patch
Description: Binary data
------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders