On Thu, 23 Sep 2004 12:52:57 +0800 ___ wrote:
>     when i send trap in my agent it can send 2 packages , one is send to 
> 162(00a2) port. 
>     but the other is send to 41472(a200) not the 162.So the first is 
> recongnized to 
>     SNMPTRAP, but the second one just a UDP package . why ? I use  
> 0xc0a8013900a2 the     tell it the port is 00a2 but I seems as it does not 
> work . 

That sounds like a network byte order problem. Are you on an x86 machine
(little endian), or a big endian architecture (like ppc)?

A quick fix, till I have time to look at it, is to change your conf file entry
to end with a200 instead of 00a2. I think that should work...

-- 
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