On Tue, Apr 16, 2013 at 12:55 PM, Werner Almesberger <wer...@almesberger.net > wrote:
> This patch set cleans up microudp.c and tftp.c a little and then > implements a new tftp_put function. Tested with transfers of 1024 > and 1025 bytes into > https://github.com/wpwrak/ming-ddc-debug/blob/master/tftpd/tftpd.pl > > - Werner > > Werner Almesberger (9): > microudp.c: avoid redundant accesses into multi-level structures > tftp.c: use symbolic constants for protocol opcodes > tftp.c (rx_callback): simplify expressions containing unnecessary > casts > tftp.c: make "packet_data" unsigned and optimize strcpy+strlen > tftp.h, tftp.c (tftp_get): make "buffer" void and use unsigned char > internally > tftp.c: use uintNN_t instead of "unsigned short", etc. > tftp.c (format_request): pass opcode as argument > tftp.c: use symbolic constant for block size > tftp.h, tftp.c: add tftp_put > > software/bios/microudp.c | 60 ++++++++++---------- > software/bios/tftp.c | 139 > +++++++++++++++++++++++++++++++++++++++------- > software/bios/tftp.h | 5 +- > 3 files changed, 154 insertions(+), 50 deletions(-) > > -- > 1.7.10.4 > > _______________________________________________ > http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org > IRC: #milkymist@Freenode >
_______________________________________________ http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org IRC: #milkymist@Freenode