<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/usr.bin/tftp, branch stable/7</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2012-05-18T00:03:13Z</updated>
<entry>
<title>MFC r235211:</title>
<updated>2012-05-18T00:03:13Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2012-05-18T00:03:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=3dd560e12bb6cf34677447853afe6998f5878591'/>
<id>urn:sha1:3dd560e12bb6cf34677447853afe6998f5878591</id>
<content type='text'>
General mdoc(7) and typo fixes.

PR:		167696
</content>
</entry>
<entry>
<title>MFC 170382 through 231539</title>
<updated>2012-02-11T23:58:07Z</updated>
<author>
<name>Craig Rodrigues</name>
<email>rodrigc@FreeBSD.org</email>
</author>
<published>2012-02-11T23:58:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=be69743be2c956b7167b1cf16dbae168d23a9537'/>
<id>urn:sha1:be69743be2c956b7167b1cf16dbae168d23a9537</id>
<content type='text'>
   - this records svn:mergeinfo for previously merged changesets

This pulls in changes such as:

MFC 216370
  - Remove adertising clause from UCB copyrighted files in usr.bin

MFC 222534
  - Fix a couple of spelling errors.

MFC 223493
  - Remove duplicated header files

MFC 223135 - 223491
  - man page updates

MFC 229403
  - Replace index() and rindex() calls with strchr() and strrchr().

MFC 230044
  - fgets(3) returns a pointer, so compare against NULL, not integer 0.
</content>
</entry>
<entry>
<title>MFC: r213099</title>
<updated>2010-10-04T19:59:11Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2010-10-04T19:59:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=2bbbc918b53bf7704b0ab32087256164b20e675c'/>
<id>urn:sha1:2bbbc918b53bf7704b0ab32087256164b20e675c</id>
<content type='text'>
Make WARNS=6 clean.
</content>
</entry>
<entry>
<title>MFC: r213075</title>
<updated>2010-10-04T19:51:16Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2010-10-04T19:51:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=7568141cb681c29c8cb60691b23256dc560d92d6'/>
<id>urn:sha1:7568141cb681c29c8cb60691b23256dc560d92d6</id>
<content type='text'>
Try to adhere to style.Makefile(5).
</content>
</entry>
<entry>
<title>MFC: r213053</title>
<updated>2010-10-04T19:40:01Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2010-10-04T19:40:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=302bc3b614d4ea3740134f16ecdd844917258ff5'/>
<id>urn:sha1:302bc3b614d4ea3740134f16ecdd844917258ff5</id>
<content type='text'>
Remove an explicit assignment of the CFLAGS variable intended for
debugging purposes only.
</content>
</entry>
<entry>
<title>MFC: r207607, r207621, r209112, r209550, r209551</title>
<updated>2010-09-22T21:54:16Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2010-09-22T21:54:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=77d9124d236274b001f0405ad2000966e79d2762'/>
<id>urn:sha1:77d9124d236274b001f0405ad2000966e79d2762</id>
<content type='text'>
Go ahead and merge the work edwin@ on tftpd into the tree.  It is a
lot better than what's in the tree now.  Edwin tested it at a prior
employer, but can't test it today.  I've found that it works a lot
better with the various uboot versions that I've used in my embedded
work.  Here's the pkg-descr from the port that describes the changes:

It all started when we got some new routers, which told me the
following when trying to upload configuration or download images
from it: The TFTP server doesn't support the blocksize option.

My curiousity was triggered, it took me some reading of RFCs and
other documentation to find out what was possible and what could
be done. Was plain TFTP very simple in its handshake, TFTP with
options was kind of messy because of its backwards capability: The
first packet returned could either be an acknowledgement of options,
or the first data packet.

Going through the source code of src/libexec/tftpd and going through
the code of src/usr.bin/tftp showed that there was a lot of duplicate
code, and the addition of options would only increase the amount
of duplicate code. After all, both the client and the server can
act as a sender and receiver.

At the end, it ended up with a nearly complete rewrite of the tftp
client and server. It has been tested against the following TFTP
clients and servers:

- Itself (yay!)
- The standard FreeBSD tftp client and server
- The Fedora Core 6 tftp client and server
- Cisco router tftp client
- Extreme Networks tftp client

It supports the following RFCs:

RFC1350 - THE TFTP PROTOCOL (REVISION 2)
RFC2347 - TFTP Option Extension
RFC2348 - TFTP Blocksize Option
RFC2349 - TFTP Timeout Interval and Transfer Size Options
RFC3617 - Uniform Resource Identifier (URI) Scheme and Applicability
          Statement for the Trivial File Transfer Protocol (TFTP)

It supports the following unofficial TFTP Options as described at
http://www.compuphase.com/tftp.htm:

blksize2 - Block size restricted to powers of 2, excluding protocol headers
rollover - Block counter roll-over (roll back to zero or to one)

From the tftp program point of view the following things are changed:

- New commands: "blocksize", "blocksize2", "rollover" and "options"
- Development features: "debug" and "packetdrop"

If you try this tftp/tftpd implementation, please let me know if
it works (or doesn't work) and against which implementaion so I can
get a list of confirmed working systems.

Author: Edwin Groothuis &lt;edwin@FreeBSD.org&gt;
</content>
</entry>
<entry>
<title>MFC: r183858</title>
<updated>2010-09-22T21:44:55Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2010-09-22T21:44:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=283adc1c32c42f010503d603d672e0cde4d97541'/>
<id>urn:sha1:283adc1c32c42f010503d603d672e0cde4d97541</id>
<content type='text'>
ANSIfy, plus constify interfaces where possible.
</content>
</entry>
<entry>
<title>MFC: r183857</title>
<updated>2010-09-22T21:43:48Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2010-09-22T21:43:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=df33d23f181a2bc454d8639006f7d56cda24a585'/>
<id>urn:sha1:df33d23f181a2bc454d8639006f7d56cda24a585</id>
<content type='text'>
Use strlcpy() instead of strncpy() when we want the string to be
NUL-terminated.
</content>
</entry>
<entry>
<title>Merge r201429 from head:</title>
<updated>2010-01-17T10:59:07Z</updated>
<author>
<name>Gavin Atkinson</name>
<email>gavin@FreeBSD.org</email>
</author>
<published>2010-01-17T10:59:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=d554b3e8ac2f63c7d500f24592812b82f7961411'/>
<id>urn:sha1:d554b3e8ac2f63c7d500f24592812b82f7961411</id>
<content type='text'>
  Fix return code in the case of successful file transfer, broken in
  tftp.c 1.13

PR:		bin/117452
Submitted by:	Spencer Minear  minear securecomputing.com
Approved by:	ed (mentor, implicit)
</content>
</entry>
<entry>
<title>MFC: Fix various markup nits.</title>
<updated>2007-11-14T19:25:05Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2007-11-14T19:25:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=db153611b743ccb84945139402a348e3d69235e2'/>
<id>urn:sha1:db153611b743ccb84945139402a348e3d69235e2</id>
<content type='text'>
Approved by:	re (kensmith)
</content>
</entry>
</feed>
