summaryrefslogtreecommitdiff
path: root/usr.bin/tftp/tftp.c
AgeCommit message (Collapse)Author
2007-05-11Delinting from tbert <bret dot lambert at gmail dot com>Ray Lai
OK moritz@
2006-07-26Fixing several timeout quirks at tftpd and tftp:Marcus Glocker
- move TIMEOUT* defines to arpa/tftp.h, as they are used several times in tftpd and tftp, and the values are part of the RFC definition. - tftpd and tftp did count the total retransmission time in retries instead in seconds. fixed. - tftpd rexmt timeout was hardcoded by a define and therefore didn't changed when the timeout option was sent. fixed. - limit total retransmission timeout in tftp to also 255 seconds. - replace obvious atoi()'s by strtonum(). ok claudio@
2006-07-24Adding TFTP Option Extension to the tftp client according to RFC 2347.Marcus Glocker
Implemented options are: - TFTP Blocksize Option, RFC 2348 - TFTP Timeout Interval and Transfer Size Options, RFC 2349 We have now on the tftp client side the same options supported as in our tftp server. ok claudio@
2006-07-20Add blksize option support for tftpd according to RFC 2348.Marcus Glocker
Note: While testing the new option, we noticed that our stable tftpd has a problem if any option is set (e.g. tsize) and you try to put a file. This has nothing todo with our new blksize option. We fix this as next. ok claudio@
2006-07-12knf. no binary change.Marcus Glocker
ok beck@ claudio@
2006-05-08Remove unsave setjmp/longjmp calls that were used in signal handlers withClaudio Jeker
a more sane poll loop. Includes some style(9) changes. Diff made by Marcus Glocker
2003-09-24knfTheo de Raadt
2003-06-25ansiTheo de Raadt
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-17nuke strcpy + -WallHenning Brauer
parts from and ok mickey@
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-19kill more registersMike Pechkin
millert@ ok
2001-07-31o) better struct handling;Mike Pechkin
o) use __progname in openlog(3); o) better ERROR packets handling; millert@ ok
2001-03-22use err/warn, space policeMichael Shalayeff
2000-12-07tftp argv parsing overflow; fix by vogelke@dnaco.net and ITheo de Raadt
2000-02-01no need to extern int errno if errno.h is includedTheo de Raadt
1997-08-06save errno in mangly handlersTheo de Raadt
1997-01-17r?index -> strr?chrTodd C. Miller
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt