lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #46685] pcb->accepts_pending is not decreased


From: Joel Cunningham
Subject: [lwip-devel] [bug #46685] pcb->accepts_pending is not decreased
Date: Thu, 07 Jan 2016 17:44:05 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #6, bug #46685 (project lwip):

Actually the pcb returned from tcp_listen() is of type struct tcp_pcb_listen
*lpcb, but it has been casted.  Take a look at tcp_listen_with_backlog().  The
original pcb is transformed into type tcp_pcb_listen, which you can pass to
tcp_accepted()

Within APIs and code, listener PCBs are treated as a normal struct tcp_pcb
until looking at the state (LISTEN) at which point it is casted to the correct
type.  If you look at the tcp_accepted() macro, you can see it's expecting the
input PCB to be struct tcb_pcb because it performs its own casts

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?46685>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]