buglwIP - A Lightweight TCP/IP stack - Bugs: bug #54833, tcp_abort(struct tcp_pcb *pcb)...

 
 

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

bug #54833: tcp_abort(struct tcp_pcb *pcb) problem

Submitter:  Dirk Ziegelmeier <dziegel>
Submitted:  Fri 12 Oct 2018 05:41:31 PM UTC
   
 
Category:  TCP Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  2.1.1
lwIP version:  2.1.0

Fri 12 Oct 2018 08:16:39 PM UTC, comment #2: 

Fixed by reverting 1570dd8a

Simon Goldschmidt <goldsimon>
Group administrator
Fri 12 Oct 2018 07:55:11 PM UTC, comment #1: 

You're right it doesn't work. Don't know how that slipped through. This one is now the most pressing to release a 2.1.1, I guess... :-(

Simon Goldschmidt <goldsimon>
Group administrator
Fri 12 Oct 2018 05:41:31 PM UTC, original submission:  

Hello,

There is a problem in tcp_abort function, when it is used with pcb in
"Active" state. The source port of RST packet sent is set to 0 .

In the previous version of LwIP in tcp_abandon function there was
variable "local_port". It was used to store the local port of pcb before
calling TCP_PCB_REMOVE_ACTIVE, and then it was passed as argument to
tcp_rst instead of pcb->local_port which is set to zero at this moment.

I don't know what was an idea to remove this variable from current
version of LwIP, but from my point of view it doesn't work properly now.

Regards

--
Karol Domagalski
Software-Hardware Engineer

B.P.I. SoftCad

Dirk Ziegelmeier <dziegel>
Group administrator

 

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

No files currently attached

 

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 dziegel (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-12 goldsimon StatusNone Fixed
        Open/ClosedOpen Closed
    2018-10-12 goldsimon Planned ReleaseNone 2.1.1

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code