lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #29256] SNMP Trap address


From: Riccardo Capponi
Subject: [lwip-devel] [bug #29256] SNMP Trap address
Date: Thu, 18 Mar 2010 14:41:38 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; FDM; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

URL:
  <http://savannah.nongnu.org/bugs/?29256>

                 Summary: SNMP Trap address
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: riccardocapponi
            Submitted on: gio 18 mar 2010 14:41:37 GMT
                Category: UDP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: 1.3.1

    _______________________________________________________

Details:

Hello,

using lwIP, I noticed this bug when lwIP sends a trap, the destination
address is written backwards and the trap does not arrive, so just change the
code in msg_out.c as follows, from:

void
snmp_trap_dst_ip_set(u8_t dst_idx, struct ip_addr *dst)
{
  if (dst_idx < SNMP_TRAP_DESTINATIONS)
  {
    trap_dst[dst_idx].dip.addr = htonl(dst->addr);
  }
}

to:

void
snmp_trap_dst_ip_set(u8_t dst_idx, struct ip_addr *dst)
{
  if (dst_idx < SNMP_TRAP_DESTINATIONS)
  {
    trap_dst[dst_idx].dip.addr = dst->addr;
  }
}

Best regards.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?29256>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]