From 4b5c14470a2aef65ba9010b0891778df1c700989 Mon Sep 17 00:00:00 2001 From: christiaans Date: Thu, 17 Aug 2006 14:11:45 +0000 Subject: [PATCH] Fixed htons into htonl for trap desctination ip. --- src/core/snmp/msg_out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/snmp/msg_out.c b/src/core/snmp/msg_out.c index e9e9bec8..4a22f788 100644 --- a/src/core/snmp/msg_out.c +++ b/src/core/snmp/msg_out.c @@ -192,7 +192,7 @@ snmp_send_trap(struct ip_addr *dst, s8_t generic_trap, s32_t specific_trap) u16_t tot_len; /* network order trap destination */ - trap_msg.dip.addr = htons(dst->addr); + trap_msg.dip.addr = htonl(dst->addr); /* lookup current source address for this dst */ dst_if = ip_route(dst); trap_msg.sip_raw[0] = dst_if->ip_addr.addr >> 24;