If you apply the patch in [ Bugzilla 1001789], remove the htonl like this:
addr.addr = snmp_message->ADDRESS.addr;
>
> snmp_message = (SNMP_MESSAGE_PTR)
> cyg_mbox_get(snmp_mailbox_handle);
> if (snmp_message->COMMAND == SNMP_SEND_TRAP)
> {
> struct ip_addr addr;
> // Reverse the bytes because snmp_trap_dst_ip_set
> reverses them again.
> addr.addr = htonl(snmp_message->ADDRESS.addr);
> snmp_trap_dst_ip_set(0,&addr);
> snmp_trap_dst_enable(0,snmp_message->TRAP);
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss