lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9839] Add support for struct sockaddr with no sa_le


From: Joan Lledó
Subject: [lwip-devel] [patch #9839] Add support for struct sockaddr with no sa_len field.
Date: Sat, 27 Jul 2019 12:42:11 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

URL:
  <https://savannah.nongnu.org/patch/?9839>

                 Summary: Add support for struct sockaddr with no sa_len
field.
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jllledo
            Submitted on: Sat 27 Jul 2019 06:42:09 PM CEST
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

struct sockaddr includes sa_len, but some systems like Linux doesn't have this
filed, which produces many compilation problems.
  - My solution was:
    - Create macros to write and read from sa_len/sin_len/sin6_len fields
    - Replace all occurrences this fields for the proper macro
    - Declare write macros as empty and read macros as default values on
systems where
      sa_len and pals are not supported
    - Use _HAVE_SA_LEN to identify whether the system supports sa_len

More info at:

https://lists.nongnu.org/archive/html/lwip-devel/2019-07/msg00001.html



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 27 Jul 2019 06:42:09 PM CEST  Name:
0001-Add-support-for-struct-sockaddr-with-no-sa_len-field.patch  Size: 5KiB  
By: jllledo

<http://savannah.nongnu.org/patch/download.php?file_id=47270>

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?9839>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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