This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to make lwip SNMP work
- From: Michael Jones <mjones at linear dot com>
- To: ecos discuss <ecos-discuss at sourceware dot org>
- Date: Sun, 3 Mar 2013 11:20:35 -0700
- Subject: Re: [ECOS] How to make lwip SNMP work
- References: <A1D22FBC-92C2-4557-A8B1-3608DAC7EEEB@linear.com>
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