summaryrefslogtreecommitdiff
path: root/libexec/tftpd
AgeCommit message (Collapse)Author
2007-04-04only do the SO_REUSEADDR/SO_REUSEPORT if we are going to bind; pointed out ↵Theo de Raadt
by millert
2007-04-02be more forgiving about tftp requests that come from the 255.255.255.255,Theo de Raadt
as is of particular concern with the sun v215; tested by kettenis, no regressions spotted by pyr
2006-12-15reduce RFC2292/3542 #ifdef.Jun-ichiro itojun Hagino
2006-12-09IPV6_RECVDSTADDR is not standard. use more standard IPV6_PKTINFO.Jun-ichiro itojun Hagino
also prepare for RFC2292->RFC3542 switch (IPV6_RECVPKTINFO). glocker ok (he tested), deraadt also looked at
2006-07-28Make tftpd atoi() free.Marcus Glocker
ok claudio@
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-21- fix protocol for write requests (put) which come with options.Marcus Glocker
- revert realloc() by fix malloc() because the code relies on a fix packet buffer address. ok claudio@
2006-07-20no need for .Pp after sections;Jason McIntyre
2006-07-20Adjust BUGS section; we do support blocksize negotiation for tftpdMarcus Glocker
now. Remembered by jmc@
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-14Fix some syslog(3) messages. Prototype usage() by __dead void.Marcus Glocker
ok claudio@
2006-07-14knf. no binary change.Marcus Glocker
ok claudio@
2006-06-16From Markus Glockner <markus@nazgul.ch>, adds logging of refusalsBob Beck
and debug level logging of transfers to tftpd. all the work done by markus, I only tested and nitpicked. ok mbalmer@
2006-04-25kill setjmp() and alarm() methods, which are almost always inverted signalTheo de Raadt
races. use poll() instead. by marcus@nazgul.ch
2006-04-17spaces.Theo de Raadt
can someone please rewrite this to not use setjmp(), but instead a poll() loop? please & thank you
2006-01-23Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENTodd C. Miller
2006-01-02+.Xr tftp-proxy 8Jason McIntyre
2005-03-10Bind to the correct outgoing interface by using the IP_RECVDSTADDR setsockopt.Claudio Jeker
This is a fix for PR4121. OK henning@ "I'm happy with" otto@
2005-03-05Check snprintf return value for failure. Also fix a dumb error message.Chad Loder
OK otto, henning, hshoexer, krw. Some input from Moritz which I have chosen not to heed because I think the code is easier to read my way.
2005-03-04Typos in comments from Niall O'Higgins <niallo at netsoc dot ucd dot ie>Otto Moerbeek
2005-02-22get timezone right before chroot() by calling tzset()Otto Moerbeek
ok henning@
2004-11-22.{N,O}x fixes;Jason McIntyre
2004-09-18ARGSUSED on signal handlersTheo de Raadt
2004-08-08spacingTheo de Raadt
2004-04-28fd leaksTheo de Raadt
2004-04-17no no no nobody, _tftpd is better, theo okHenning Brauer
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-04-03add pxeboot references to FILES and SEE ALSO;Jason McIntyre
ok deraadt@
2004-01-27TSIZE & TIMEOUT support; from freebsd via tholoTheo de Raadt
2004-01-12make DESCRIPTION not conflict with the options;Jason McIntyre
standard options list;
2003-09-24realloc fixes; ok hoTheo de Raadt
2003-08-08refer to RFCs consistently (RFC XXXX);Jason McIntyre
2003-07-29spacesTheo de Raadt
2003-07-06bring protos into scopeTheo de Raadt
2003-06-25protosTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02section reorder;Jason McIntyre
2003-02-14typos;Jason McIntyre
tftpd(8): tweak and ok millert@ tokenadm(8): tweak and ok millert@
2002-09-06use socklen_t more; henning okTheo de Raadt
2002-07-03KNFTheo de Raadt
2002-06-04fix $OpenBSD$ tag.Mike Pechkin
millert@ ok
2002-06-02minor KNFTheo de Raadt
2002-05-13o) fix order and usage of chroot&chdir;Mike Pechkin
o) move code up from chroot&chdir block (tftpd); millert@ ok
2002-02-01make tftpd address family independent.Jun-ichiro itojun Hagino
2001-12-07mark longjmp raceTheo de Raadt
2001-07-31while i'm here: NetBSD -> .NxMike 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-06-11strncpy vs strlcpy, some strlen missuse.Michael Shalayeff
some other related minor cleanups, and spaces. millert@ ok