mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-07-16 01:37:27 +00:00
Fixed htons into htonl for trap desctination ip.
This commit is contained in:
parent
f198b11f27
commit
4b5c14470a
|
@ -192,7 +192,7 @@ snmp_send_trap(struct ip_addr *dst, s8_t generic_trap, s32_t specific_trap)
|
||||||
u16_t tot_len;
|
u16_t tot_len;
|
||||||
|
|
||||||
/* network order trap destination */
|
/* 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 */
|
/* lookup current source address for this dst */
|
||||||
dst_if = ip_route(dst);
|
dst_if = ip_route(dst);
|
||||||
trap_msg.sip_raw[0] = dst_if->ip_addr.addr >> 24;
|
trap_msg.sip_raw[0] = dst_if->ip_addr.addr >> 24;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user