summaryrefslogtreecommitdiff
path: root/libexec/tftpd
AgeCommit message (Collapse)Author
2008-11-14LOG_INFO is a level not a facility; input and ok jmc@Kevin Steves
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
2008-03-15Repair more msg_controllen dealing with structures or arrays ofTheo de Raadt
descriptors; ok hshoexer, also looked at by kettenis and henning
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2007-11-29- get synopsis/usage() rightJason McIntyre
- improve options text no one objected...
2007-11-27tweak previous;Jason McIntyre
2007-11-27add missing header for inet_ntoa.Charles Longeau
"sure" deraadt@
2007-11-26add logging option, ok deraadt@Jolan Luff
2007-05-31convert to new .Dd format;Jason McIntyre
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