Re: [U-Boot] [RFC] Act as a TFTP server

2011-05-16 Thread Luca Ceresoli
Wolfgang Denk wrote: > Dear Luca Ceresoli, > > In message<4dbff3af.4040...@comelit.it> you wrote: >>> So assuming we never see any incoming packets - how long will we wait? >> Once it has started, the server is stopped like the client is: >> - on a complete file reception >> - pressing Ctrl-C >>

Re: [U-Boot] [RFC] Act as a TFTP server

2011-05-03 Thread Wolfgang Denk
Dear Luca Ceresoli, In message <4dbff3af.4040...@comelit.it> you wrote: > > > So assuming we never see any incoming packets - how long will we wait? > > Once it has started, the server is stopped like the client is: > - on a complete file reception > - pressing Ctrl-C > - after waiting 5 seconds

Re: [U-Boot] [RFC] Act as a TFTP server

2011-05-03 Thread Luca Ceresoli
Il 30/04/2011 21:53, Wolfgang Denk ha scritto: > Dear Luca Ceresoli, > > In message<4da59b5e.5000...@comelit.it> you wrote: Usage:tftpsrv [] This would be used almost like tftpboot, except no file name is specified on the commandline. would default to th

Re: [U-Boot] [RFC] Act as a TFTP server

2011-04-30 Thread Wolfgang Denk
Dear Luca Ceresoli, In message <4da59b5e.5000...@comelit.it> you wrote: > > >> Usage:tftpsrv [] > >> > >> This would be used almost like tftpboot, except no file name is specified > >> on > >> the commandline. > >>would default to the environment variable. > > I see some user interfac

Re: [U-Boot] [RFC] Act as a TFTP server

2011-04-14 Thread Luca Ceresoli
Luca Ceresoli wrote: > - net/tftp.c: extend the TFTP state machine (TftpHandler() and TftpStart()) > a new STATE_WAITING state (it should be enough); > - the state machine would be different in the session setup: in > STATE_WAITING handle WRQ packets and select a new UDP port; >

Re: [U-Boot] [RFC] Act as a TFTP server

2011-04-13 Thread Luca Ceresoli
Wolfgang, thanks for the feedback. Wolfgang Denk wrote: > ... >>From the user point of view, I would implement a new command, activated >> only >> when CONFIG_CMD_TFTPSRV is defined: >> >> Usage:tftpsrv [] >> >> This would be used almost like tftpboot, except no file name is specifie

Re: [U-Boot] [RFC] Act as a TFTP server

2011-04-13 Thread Wolfgang Denk
Dear Luca, In message <4da5682a.8040...@comelit.it> you wrote: > > I am going to implement in U-Boot the ability to receive a file via TFTP > acting > as a server, not a client. I've sketched up a way to implement it, and I would > appreciate any comments about it. Thanks for the efforts, and e

[U-Boot] [RFC] Act as a TFTP server

2011-04-13 Thread Luca Ceresoli
Hi, I am going to implement in U-Boot the ability to receive a file via TFTP acting as a server, not a client. I've sketched up a way to implement it, and I would appreciate any comments about it. This is useful to solve the firewall issues that a Management Station can face when sending files to