buglwIP - A Lightweight TCP/IP stack - Bugs: bug #45135, getsockopt SO_SNDTIMEO,...

 
 

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

bug #45135: getsockopt SO_SNDTIMEO, SO_RCVTIMEO broken

Submitter:  Jens Nielsen <deft>
Submitted:  Mon 18 May 2015 08:05:33 PM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Thu 21 May 2015 01:47:35 PM UTC, comment #1: 

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 18 May 2015 08:05:33 PM UTC, original submission:  

Tiny but quite significant bug, tv_sec is set to the value that should go into tv_usec

Just change

((struct timeval )(optval))->tv_sec = ((loc) % 1000U) 1000U; }while(0)

into

((struct timeval )(optval))->tv_usec = ((loc) % 1000U) 1000U; }while(0)

or apply patch

Jens Nielsen <deft>

 

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

Attached Files
file #34048:  getsockopt.patch added by deft (674B - application/octet-stream)

 

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 deft (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
    2015-05-21 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2015-05-18 deft Attached File- Added getsockopt.patch, #34048

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code