From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-la0-f46.google.com ([209.85.215.46]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XPo5q-0002R7-Hv for barebox@lists.infradead.org; Fri, 05 Sep 2014 07:38:03 +0000 Received: by mail-la0-f46.google.com with SMTP id pv20so13299079lab.19 for ; Fri, 05 Sep 2014 00:37:36 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20140904211419.ea6eae69a1e96d2cb9d3e20e@gmail.com> References: <53C25B45.7010101@gmail.com> <20140713145526.2cf6407fc9a17a4e8db89a50@gmail.com> <20140715110157.e505c7ad66ef5871b1ecf830@gmail.com> <20140715142753.d2c6424ea6b2d1b810b0de73@gmail.com> <20140716063002.GB23235@pengutronix.de> <20140904211419.ea6eae69a1e96d2cb9d3e20e@gmail.com> Date: Fri, 5 Sep 2014 09:37:36 +0200 Message-ID: From: Daniele Lacamera List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: picotcp tftp support [was Adding IPv4 multicast support] To: Antony Pavlov Cc: Serge Franchois , barebox , Sarah Terryn Hi Antony, hello all, It's been a bit of slow-business here lately, due to the end of the summer holidays. We have put two people on the task since this week, we will keep you posted! Thanks for bearing with us! Greetings, -- Daniele On Thu, Sep 4, 2014 at 7:14 PM, Antony Pavlov wrote: > On Wed, 16 Jul 2014 08:48:18 +0200 > Daniele Lacamera wrote: > >> On Wed, Jul 16, 2014 at 8:30 AM, Sascha Hauer wrote: >> > Right now the network users register to a udp port and provide a handler >> > which is called whenever a packet to this port is received. The >> > prototype for this function is: >> > >> > struct net_connection *net_udp_new(IPaddr_t dest, uint16_t dport, >> > rx_handler_f *handler, void *ctx); >> > >> > Then network users can send packets on this connection: >> > >> > int net_udp_send(struct net_connection *con, int len); >> > >> > The function returns after the packet has been sent. >> > >> > The network user has to keep the ball rolling by calling >> > >> > void net_poll(void); >> > >> > in a loop. This function will call into the network drivers receive >> > function and dispatch the received packets. ARP packets are handled >> > internally, the UDP packets are passed to the registered handlers. >> > >> > The handlers usually will send answers to received packets (so a tftp >> > client will send an ack here or request the next packet). >> > >> > Usually the loop calling net_poll() also has some functionality to >> > detect progress and will send the last packet again if it was lost. >> > >> > Hope that explains the networking model in barebox. >> > >> >> Hi Sascha, >> >> Thanks a lot for this clarification. The mechanism you described is >> the same as the native execution model of PicoTCP, and looking around >> in the code it seems that looping around net_poll() was in fact the >> way to go. >> >> to Antony: I will improve TFTP first, by allowing multiple sessions at >> the same time. I will keep you posted on the progress. > > I see a barebox-related publication with nice pictures on the picotcp website :) > > http://www.picotcp.com/barebox-on-top-of-picotcp > > We are awaiting improved TFTP... > > -- > Best regards, > Antony Pavlov _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox