public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Michael Jones <mjones@linear.com>
To: ecos discuss <ecos-discuss@sourceware.org>
Subject: Re: [ECOS] How to make lwip SNMP work
Date: Sun, 03 Mar 2013 18:20:00 -0000	[thread overview]
Message-ID: <AA41BEE2-B797-4899-9F22-461FA9DA5755@linear.com> (raw)
In-Reply-To: <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

      reply	other threads:[~2013-03-03 18:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 17:41 Michael Jones
2013-03-03 18:20 ` Michael Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AA41BEE2-B797-4899-9F22-461FA9DA5755@linear.com \
    --to=mjones@linear.com \
    --cc=ecos-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).