NetServices Stack source

Dependents:   HelloWorld ServoInterfaceBoardExample1 4180_Lab4

Revision:
5:dd63a1e02b1b
Parent:
0:632c9925f013
--- a/lwip/core/snmp/msg_out.c	Fri Jul 09 14:46:47 2010 +0000
+++ b/lwip/core/snmp/msg_out.c	Tue Jul 27 15:59:42 2010 +0000
@@ -96,7 +96,7 @@
 {
   if (dst_idx < SNMP_TRAP_DESTINATIONS)
   {
-    ip_addr_set_hton(&trap_dst[dst_idx].dip, dst);
+    ip_addr_set(&trap_dst[dst_idx].dip, dst);
   }
 }
 
@@ -270,11 +270,8 @@
         snmp_inc_snmpouttraps();
         snmp_inc_snmpoutpkts();
 
-        /** connect to the TRAP destination */
-        udp_connect(trap_msg.pcb, &trap_msg.dip, SNMP_TRAP_PORT);
-        udp_send(trap_msg.pcb, p);
-        /** disassociate remote address and port with this pcb */
-        udp_disconnect(trap_msg.pcb);
+        /** send to the TRAP destination */
+        udp_sendto(trap_msg.pcb, p, &trap_msg.dip, SNMP_TRAP_PORT);
 
         pbuf_free(p);
       }