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

Submitted by:  Jens Nielsen <deft>
Submitted on:  Mon 18 May 2015 08:05:33 PM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

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

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
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>

 

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
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by deft (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 May 2015 01:47:35 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Mon 18 May 2015 08:05:33 PM UTCdeftAttached File-=>Added getsockopt.patch, #34048

    Back to the top


    Powered by Savane 3.1-cleanup1