freebsd kernel with SKQ
Go to file
Warner Losh 752fa69402 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 <edwin@FreeBSD.org>
2010-05-04 06:13:17 +00:00
bin sh: Use stalloc for arith variable names. 2010-04-25 20:43:19 +00:00
cddl Do not encode more than CTF_MAX_VLEN(1023) enum members. 2010-05-03 18:04:17 +00:00
contrib Update GRANDPARENTED text to match the contents of tzdata/factory r19879. 2010-05-03 22:32:26 +00:00
crypto Upgrade to OpenSSH 5.5p1. 2010-04-28 10:36:33 +00:00
etc Make address assignment via ipv6_prefix_IF work again 2010-05-04 01:46:58 +00:00
games Sync fortunes with other *BSDs 2010-03-31 18:21:25 +00:00
gnu Add FreeBSD 8.1 to known list as it's being referenced by a couple of 2010-04-29 18:37:56 +00:00
include Import ACPICA 20100428. 2010-04-28 21:50:57 +00:00
kerberos5 Fix a typo. 2010-01-09 18:53:03 +00:00
lib Document RUSAGE_THREAD. 2010-05-04 06:01:25 +00:00
libexec Forgot to initialize the debug variable. 2010-04-01 13:16:32 +00:00
release Add gpart and glabel to the release CD mfsroot. Even if sysinstall 2010-04-20 01:12:23 +00:00
rescue Remove libulog from the bootstrap again. 2010-01-21 16:56:27 +00:00
sbin Make SATA XPT negotiate and enable some additional SATA features, such as: 2010-05-02 12:07:47 +00:00
secure Regenerate manual pages for OpenSSL 0.9.8n. 2010-04-01 15:37:38 +00:00
share Sun GigaSwift Ethernet 1.0 MMF work with r207585 in place. 2010-05-03 20:59:27 +00:00
sys Fix typo in comment. 2010-05-04 06:06:01 +00:00
tools Fix typo in usage message. Add -n to the list of valid arguments. 2010-04-30 15:12:30 +00:00
usr.bin Go ahead and merge the work edwin@ on tftpd into the tree. It is a 2010-05-04 06:13:17 +00:00
usr.sbin sparc64, and possibly other architectures, pads the length of the 2010-05-01 07:25:28 +00:00
COPYRIGHT Happy New Year 2010! :-) 2009-12-31 10:00:37 +00:00
LOCKS Update LOCKS syntax. 2008-06-05 19:47:58 +00:00
MAINTAINERS Add a comment to MAINTAINERS indicating that sbin/routed is in fact 2010-04-10 12:29:09 +00:00
Makefile For those of us mere mortals who do not aspire to the lofty heights 2010-03-18 18:58:17 +00:00
Makefile.inc1 - Take libinstall.a out of pkg_install and make it a proper shared library. 2010-04-23 11:07:43 +00:00
ObsoleteFiles.inc o) Use inline functions to access coprocessor 0 registers rather than external 2010-04-17 01:17:31 +00:00
README Vendor import of OpenSSH 5.5p1 2010-04-28 08:37:00 +00:00
UPDATING On Alan's advice, rather than do a wholesale conversion on a single 2010-04-30 00:46:43 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The ``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html