lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #46145] tcp_send_empty_ack() uses wrong netif with LWI


From: Milan Cermak
Subject: [lwip-devel] [bug #46145] tcp_send_empty_ack() uses wrong netif with LWIP_HOOK_IP4_ROUTE_SRC
Date: Wed, 07 Oct 2015 12:37:23 +0000
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36

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

                 Summary: tcp_send_empty_ack() uses wrong netif with
LWIP_HOOK_IP4_ROUTE_SRC
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: cermmik
            Submitted on: Wed 07 Oct 2015 12:37:22 PM GMT
                Category: TCP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

I have defined my own LWIP_HOOK_IP4_ROUTE_SRC function and find out that ACK
packets are routed incorrectly. After lwIP code review I found that function
tcp_send_empty_ack() in tcp_out.c calls ip_route(PCB_ISIPV6(pcb),
&pcb->remote_ip, &pcb->local_ip); which has swapped IPs compared to its
definition #define ip_route(isipv6, src, dest).



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 07 Oct 2015 12:37:22 PM GMT  Name: tcp_out.patch  Size: 418B   By:
cermmik

<http://savannah.nongnu.org/bugs/download.php?file_id=35091>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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