On Thu, 23 Sep 2004 17:45:11 +0800 ___ wrote:
>     Does snmpNotifyFilterTable really work? I read the whole code of target 
> and notification ,but I don't find notifyTable use  snmpNotifyFilterTable to 
> mask some trap dst. 

No, but there is a slight chance it will make it into 5.2.

>     By the way ,the the last quiestion--"How to use SNMP-TARGET-MIB?",have 
> been resolved that 's beacuse we should use 
> 
>    ** snmpset -v1.. snmpTargetAddrTAddress... x 0xc0a801dda200 ** 

No, there is a bug in the library. You should use 0xc0a801dd00a2, which is in
correct network byte order. Here is a patch that will fix the library:

Index: snmplib/snmpUDPDomain.c
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/snmplib/snmpUDPDomain.c,v
retrieving revision 5.22
diff -u -r5.22 snmpUDPDomain.c
--- snmplib/snmpUDPDomain.c     2 Sep 2004 02:32:27 -0000       5.22
+++ snmplib/snmpUDPDomain.c     24 Sep 2004 14:37:33 -0000
@@ -806,7 +806,7 @@
         unsigned short porttmp = (o[4] << 8) + o[5];
         addr.sin_family = AF_INET;
         memcpy((u_char *) & (addr.sin_addr.s_addr), o, 4);
-        addr.sin_port = porttmp;
+        addr.sin_port = htons(porttmp);
         return netsnmp_udp_transport(&addr, local);
     }
     return NULL;


-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to