summaryrefslogtreecommitdiff
path: root/usr.bin/tftp
AgeCommit message (Collapse)Author
2024-04-23correct indentation; no functional changeJonathan Gray
ok tb@
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2022-10-04Sort commands in help output, add help to manualKlemens Nanni
OK millert Feedback OK jmc
2022-10-04Only print prompt in interactive usageKlemens Nanni
Scripting tftp(1) makes it non-interactive, yet the prompt is still printed and may mess up the shell's PS1: $ echo put nonexistent | tftp localhost tftp> tftp: open: nonexistent: No such file or directory tftp> $ The fix seems easy and works as expected for multiple commands as well: $ echo 'verbose\nput nonexistent' | ./obj/tftp localhost Verbose mode on. tftp: open: nonexistent: No such file or directory $ OK millert
2018-09-20fix indentationJonathan Gray
ok krw@ millert@
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2017-09-10Use monotonic clock for statistics display. From Scott Cheloha.Theo Buehler
ok dlg
2017-01-21The POSIX APIs that that sockaddrs all ignore the s*_len field in thePhilip Guenther
incoming socket, so userspace doesn't need to set it unless it has its own reasons for tracking the size along with the sockaddr. ok phessler@ deraadt@ florian@
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.Kenneth R Westerback
Feedback millert@ kettenis@
2015-11-11creat() -> open equiv; from Frederic NowakTheo de Raadt
2015-10-18Add "dns" to the pledges. Previously these worked because of "inet",Theo de Raadt
alas "dns" is now a mandatory statement if you want to do dns!
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-07tame "stdio inet rpath wpath cpath" supports all the functions of tftp.Theo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-10-21cope with sending or receiving files beyond 65536 blocks in length.David Gwynne
reported by justin mayes on misc@ ok deraadt@
2013-11-26unsigned char casts for ctypeTheo de Raadt
ok okan
2012-05-21fix put usageGleydson Soares
ok sthen@ henning@ dlg@ "looks right" deraadt@
2012-05-02strncpy() -> strlcpy()Gleydson Soares
ok henning@
2012-05-01IPv6 support; mostly a sync with netbsd code done by itojun@Gleydson Soares
tweaks/OK henning@ sthen@ jmc@ jasper@ feedback/tests weerd@ brad@ (thanks)
2012-03-01-This option devlivers the retransmission timeout,David Gwynne
+This option delivers the retransmission timeout,
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-22use the UNIX-related macros (.At and .Ux) where appropriate.Igor Sobrado
ok jmc@
2007-09-10Proper use of fseek/fseeko macros.Tobias Stoeckmann
OK joris@, otto@
2007-08-06the ellipsis is not an optional argument; while here, sync the usageIgor Sobrado
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-11Delinting from tbert <bret dot lambert at gmail dot com>Ray Lai
OK moritz@
2006-07-26Make tftp atoi() free.Marcus Glocker
2006-07-26TIMEOUT* values are not part of the protocol. tftp.h is a namespaceTheo de Raadt
export of the protocol. you shall not add non-protocol stuff to such a file, period.
2006-07-26Mini KNF. No binary changes.Marcus Glocker
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-24eliminate hyphen madness;Jason McIntyre
2006-07-24tweaks;Jason McIntyre
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
2006-01-23Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENTodd C. Miller
2006-01-02+.Xr tftp-proxy 8 ,Jason McIntyre
2004-04-10improve BUGS:Jason McIntyre
- current implementations do not support transfers >65535 blocks - 32767 block limit does not apply to this tftp implementation other stuff: - kill unnecessary Ns macros - uppercase tftp where applicable discussed w/ tom, and wording improvements from him;
2004-02-19fix mem leak.Mike Pechkin
hackers@ ok
2003-12-22do not re-include name in err() call; andrushock@korovino.netTheo de Raadt
2003-09-29correction to SYNOPSIS and usage(): host argument must be specifiedJason McIntyre
if using port argument; from simon@freebsd
2003-09-25- clarify "put" and "get" commands. This is based on a FreeBSD PR submittedJason McIntyre
by Gary W. Swearingen and fixed by Simon L. Nielsen in rev. 1.15; - some other small clarifications to the man page - sync usage()'s with the man page
2003-09-24knfTheo de Raadt
2003-09-24fix automatic connection which is supposed to be done in put command;Theo de Raadt
found by jmc, fixed by me
2003-06-26another proto repairTheo de Raadt
2003-06-25protosTheo 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.