patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9843, Sockets: declare...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9843: Sockets: declare msghdr->msg_iovlen as msg_iovlen_t

Submitter:  Joan Lledó <jllledo>
Submitted:  Sat 10 Aug 2019 10:10:33 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None

Sun 11 Aug 2019 06:15:51 PM UTC, comment #1: 

Applied, thanks for the patch.

Simon Goldschmidt <goldsimon>
Group administrator
Sat 10 Aug 2019 10:10:33 AM UTC, original submission:  

In Linux, when using the system's sockets headers, struct msghdr->msg_iovlen is not defined as int.
  - POSIX[1] says it must be int
  - My solution was:
    - add a typedef int msg_iovlen_t; in lwip's sockets.h
    - declare msg_iovlen as msg_iovlen_t inside struct msghdr in lwip's sockets.h
    - let the user typedef msg_iovlen_t as the type they need for their system
    - Line 253: declare i as msg_iovlen_t i;

More info at:

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

Joan Lledó <jllledo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by jllledo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-11 goldsimon StatusNone Done
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2019-08-10 jllledo Attached File- Added 0001-Sockets-declare-msghdr-msg_iovlen-as-msg_iovlen_t.patch, #47317

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code