Il 06/06/2011 10:45 AM, Dave Shield ha scritto:
> On 5 June 2011 13:26, Leo Cacciari <[email protected]> wrote:
>> ...snip...
>>   What I'm thinking is adding a 'X' type flag meaning something
>> like "the data is to be sent as 'opaque' and here it follows the data
>> itself ber-encoded and written as an hex string."
> 
> Yes - that seems a perfectly sensible extension.
> I'm not sure how widely useful it would be to anyone
> else,  but it wouldn't do any harm either.
> 
> I think that about the only code you'd need to touch
> would be 'snmp_add_var'  (in snmp_api.c), plus
> the type validation in snmpset itself.

Hi,
as a followup to prevoious postings, I've implemented what I suggested.
I started with the net-snmp version I use in production (namely 5.6.1)
and then patched also 5.6.1.1 (which does not differ from 5.6.1 in the
modified files (namely apps/snmpset.c, snmplib/snmp_api.c and the man
source man/snmpset.1.def, man/snmptrap.1.def and man/agentxtrap.1.def).
I ported the patch also to 5.7.pre2, but I still have some problem with
installing the RC so I was unable to test it. Now the question is: how
do I submit the patch? Must I provide some test program and if yes how
should I implement it? (I have a small subagent implementing a simple
MIB defining an 'opaque' integer sequence).

--
Leo Cacciari
Aliae nationes servitutem pati possunt populi romani est propria libertas

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to