lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #45098] ip_addr_t type field not populated for socket


From: James Smith
Subject: [lwip-devel] [bug #45098] ip_addr_t type field not populated for socket address copies
Date: Wed, 13 May 2015 15:03:11 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

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

                 Summary: ip_addr_t type field not populated for socket
address copies
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: rallysmith
            Submitted on: Wed 13 May 2015 15:03:09 GMT
                Category: sockets/netconn
                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:

When using a dual stack the type field was not being set when copying socket
addresses, and so subsequent users of the ip_addr_t would more than likely
treat an IPv6 address as a 32-bit IPv4 (since current macros default to IPv4
when type != IPADDR_TYPE_V6 and the uninitialised field could be anything
depending on the underlying run-time).

Simple patch attached (since easier doing it in this dual stack only function
than in the SOCKADDR#_TO_IP#ADDR_PORT macros).






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 13 May 2015 15:03:09 GMT  Name: socket_ipaddr_type.patch  Size: 606B
  By: rallysmith
Patch to set type field accordingly
<http://savannah.nongnu.org/bugs/download.php?file_id=33999>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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