buglwIP - A Lightweight TCP/IP stack - Bugs: bug #52692, tcp: handle pcb->snd_queuelen...

 
 

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

bug #52692: tcp: handle pcb->snd_queuelen and chained pbufs during segment split

Submitted by:  Joel Cunningham <jcunningham>
Submitted on:  Tue 19 Dec 2017 03:45:04 PM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: In Progress
Privacy: PublicAssigned to: Joel Cunningham <jcunningham>
Open/Closed: OpenPlanned Release: None
lwIP version: git head

Tue 19 Dec 2017 03:45:04 PM UTC, original submission:

Found another issue in tcp_split_unsent_seg() where a chained pbuf was not correctly updating pcb->snd_queuelen during trimming and snd_queuelen would desynchronize if pbuf_realloc() freed some of the chain

Also, use pbuf_clen() for adding the new remaining segment rather than ++. The new remaining segment should always be one pbuf due to the semantics of PBUF_RAM, but this follows the best practice of using pbuf_clen()

Joel Cunningham <jcunningham>
Project MemberIn charge of this item.

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jcunningham (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 19 Dec 2017 03:45:04 PM UTCjcunninghamAttached File-=>Added 0001-tcp-handle-pcb-snd_queuelen-and-chained-pbufs-during.patch, #42683

    Back to the top


    Powered by Savane 3.1-cleanup1