From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9800 invoked by alias); 3 Mar 2013 18:20:41 -0000 Received: (qmail 9792 invoked by uid 22791); 3 Mar 2013 18:20:40 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from p02c12o145.mxlogic.net (HELO p02c12o145.mxlogic.net) (208.65.145.78) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 03 Mar 2013 18:20:36 +0000 Received: from unknown [12.218.215.72] (EHLO smtpauth1.linear.com) by p02c12o145.mxlogic.net(mxl_mta-7.0.0-1) with ESMTP id 37493315.0.75210.00-349.148756.p02c12o145.mxlogic.net (envelope-from ); Sun, 03 Mar 2013 11:20:36 -0700 (MST) X-MXL-Hash: 513394742af018d2-f099cd119d2a79045eccfcdb1d2d52b5d71dd264 Received: from smtpauth1.linear.com (localhost [127.0.0.1]) by smtpauth1.linear.com (Postfix) with ESMTP id 57C18740A8 for ; Sun, 3 Mar 2013 10:20:35 -0800 (PST) Received: from [192.168.0.24] (71-219-193-67.clsp.qwest.net [71.219.193.67]) by smtpauth1.linear.com (Postfix) with ESMTPSA id 24D70740A3 for ; Sun, 3 Mar 2013 10:20:35 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) From: Michael Jones In-Reply-To: Date: Sun, 03 Mar 2013 18:20:00 -0000 Content-Transfer-Encoding: 7bit Message-Id: References: To: ecos discuss X-AnalysisOut: [v=2.0 cv=HsXB7TvS c=1 sm=1 a=glloKNylpeYNumXQcclYyA==:17 a] X-AnalysisOut: [=GTMi6bmlma8A:10 a=D2_GN2MmYMYA:10 a=BLceEmwcHowA:10 a=kj9] X-AnalysisOut: [zAlcOel0A:10 a=MqDINYqSAAAA:8 a=Vmt7n7o2qGYA:10 a=WReG77oD] X-AnalysisOut: [cUuBO7TCeMUA:9 a=CjuIK1q_8ugA:10 a=CzmnGM14ck63LDJy:21 a=A] X-AnalysisOut: [3OCM_fZI7Mhu_zK:21] X-MAIL-FROM: X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] How to make lwip SNMP work X-SW-Source: 2013-03/txt/msg00004.txt.bz2 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