[riot-notifications] [RIOT-OS/RIOT] gnrc_tcp: rewrite passive open (#16459)

Simon Brummer notifications at github.com
Mon Jul 5 11:53:45 CEST 2021

@brummer-simon commented on this pull request.

>  static uint32_t demux = GNRC_NETREG_DEMUX_CTX_ALL;
 static gnrc_nettype_t ntype = GNRC_NETTYPE_TCP;
 static void *tcploop(void *arg)
     mutex_t *tcpmtx = arg;
-    gnrc_tcp_tcb_t tcb;
+    gnrc_tcp_tcb_queue_t queue = GNRC_TCP_TCB_QUEUE_INIT;
+    gnrc_tcp_tcb_t tcbs[TCB_QUEUE_SIZE];

Although I don't think that TCB_QUEUE_SIZE will ever change, I moved it to global context. The reason for the stack allocation was an attept to keep the application the way it was.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210705/2479311a/attachment-0001.htm>

More information about the notifications mailing list