On Wed, Jul 19, 2006 at 04:08:02PM +0100, Dave Shield wrote: > On 19/07/06, Magnus Fromreide <[EMAIL PROTECTED]> wrote: > > there is sadly a misalignment in the code so if you have the > > functions that converts from v2-notification to v1-trap and back and calls > > them like: > > > > res = v2tov1(v1tov2(v2tov1(v1tov2(inputV1)))); > > > > then res != inputV1. > > That sounds like a bug that needs to be fixed. > Can you perhaps elaborate a bit on exactly what problems you are seeing?
First I have to say that I am sorry since it wasn't quite that bad but the problems I am seeing is as follows: In convert_v1pdu_to_v2: A community field is eventually inserted among the varbinds. I think that is odd since I feel that the community has more to do with the security information than the varbind. It is also odd that it only happens in convert_v1pdu_to_v2. In netsnmp_send_traps: The agent address field in the v1 pdu is always overwritten, even if the v2 varbind that should override it is included. /MF ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
