Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/dhcp Initial import of version 3 of the ISC DHCP di...



details:   https://anonhg.NetBSD.org/src/rev/0db1035ec3a0
branches:  trunk
changeset: 485207:0db1035ec3a0
user:      mellon <mellon%NetBSD.org@localhost>
date:      Sat Apr 22 07:11:26 2000 +0000

description:
Initial import of version 3 of the ISC DHCP distribution.

diffstat:

 usr.sbin/dhcp/.cvsignore                     |     1 +
 usr.sbin/dhcp/ANONCVS                        |   129 +
 usr.sbin/dhcp/COPYRIGHT                      |    17 +
 usr.sbin/dhcp/DOCUMENTATION                  |    13 +
 usr.sbin/dhcp/ISC-LICENSE                    |   161 +
 usr.sbin/dhcp/client/.cvsignore              |     6 +
 usr.sbin/dhcp/client/clparse.c               |   855 ++++--
 usr.sbin/dhcp/client/dhclient.conf.5         |   118 +-
 usr.sbin/dhcp/client/omapi.c                 |   328 ++
 usr.sbin/dhcp/client/scripts/linux           |     7 +
 usr.sbin/dhcp/client/scripts/openbsd         |   203 +
 usr.sbin/dhcp/common/.cvsignore              |     4 +
 usr.sbin/dhcp/common/alloc.c                 |  1367 ++++++++-
 usr.sbin/dhcp/common/auth.c                  |    72 +
 usr.sbin/dhcp/common/bpf.c                   |   165 +-
 usr.sbin/dhcp/common/conflex.c               |   752 ++++-
 usr.sbin/dhcp/common/convert.c               |   103 +-
 usr.sbin/dhcp/common/dhcp-contrib.5          |   214 +
 usr.sbin/dhcp/common/dhcp-contrib.cat5       |   330 ++
 usr.sbin/dhcp/common/dhcp-eval.5             |   407 ++
 usr.sbin/dhcp/common/dhcp-eval.cat5          |   462 +++
 usr.sbin/dhcp/common/discover.c              |   757 +++++
 usr.sbin/dhcp/common/dlpi.c                  |   172 +-
 usr.sbin/dhcp/common/dns.c                   |   647 ++--
 usr.sbin/dhcp/common/ethernet.c              |   107 +
 usr.sbin/dhcp/common/execute.c               |   819 +++++
 usr.sbin/dhcp/common/fddi.c                  |   106 +
 usr.sbin/dhcp/common/hash.c                  |   156 +-
 usr.sbin/dhcp/common/icmp.c                  |   140 +-
 usr.sbin/dhcp/common/inet.c                  |    16 +-
 usr.sbin/dhcp/common/inet_addr.c             |     6 +-
 usr.sbin/dhcp/common/lpf.c                   |   182 +-
 usr.sbin/dhcp/common/memory.c                |   907 +------
 usr.sbin/dhcp/common/nit.c                   |   114 +-
 usr.sbin/dhcp/common/options.c               |  1154 ++++++-
 usr.sbin/dhcp/common/packet.c                |   127 +-
 usr.sbin/dhcp/common/parse.c                 |  3609 ++++++++++++++++++++++++-
 usr.sbin/dhcp/common/print.c                 |  1070 +++++++-
 usr.sbin/dhcp/common/raw.c                   |    78 +-
 usr.sbin/dhcp/common/resolv.c                |    66 +-
 usr.sbin/dhcp/common/socket.c                |   138 +-
 usr.sbin/dhcp/common/tr.c                    |   344 ++
 usr.sbin/dhcp/common/tree.c                  |  3592 +++++++++++++++++++++++-
 usr.sbin/dhcp/common/upf.c                   |   107 +-
 usr.sbin/dhcp/contrib/dhcp.spec              |   157 +
 usr.sbin/dhcp/contrib/sethostname.sh         |    29 +
 usr.sbin/dhcp/contrib/solaris.init           |    28 +
 usr.sbin/dhcp/dhcpctl/.cvsignore             |     4 +
 usr.sbin/dhcp/dhcpctl/Makefile.dist          |    86 +
 usr.sbin/dhcp/dhcpctl/callback.c             |   179 +
 usr.sbin/dhcp/dhcpctl/cltest.c               |   167 +
 usr.sbin/dhcp/dhcpctl/dhcpctl.c              |   494 +++
 usr.sbin/dhcp/dhcpctl/dhcpctl.h              |   128 +
 usr.sbin/dhcp/dhcpctl/remote.c               |   297 ++
 usr.sbin/dhcp/dhcpctl/test.c                 |   392 ++
 usr.sbin/dhcp/doc/api+protocol               |   436 +++
 usr.sbin/dhcp/includes/arpa/nameser.h        |   558 ++-
 usr.sbin/dhcp/includes/arpa/nameser_compat.h |   183 +
 usr.sbin/dhcp/includes/auth.h                |    59 +
 usr.sbin/dhcp/includes/cdefs.h               |    45 +-
 usr.sbin/dhcp/includes/cf/aix.h              |    77 +-
 usr.sbin/dhcp/includes/cf/alphaosf.h         |   106 +-
 usr.sbin/dhcp/includes/cf/bsdos.h            |    77 +-
 usr.sbin/dhcp/includes/cf/cygwin32.h         |    41 +-
 usr.sbin/dhcp/includes/cf/freebsd.h          |    86 +-
 usr.sbin/dhcp/includes/cf/hpux.h             |    87 +-
 usr.sbin/dhcp/includes/cf/irix.h             |    39 +-
 usr.sbin/dhcp/includes/cf/linux.h            |    87 +-
 usr.sbin/dhcp/includes/cf/netbsd.h           |    84 +-
 usr.sbin/dhcp/includes/cf/nextstep.h         |    76 +-
 usr.sbin/dhcp/includes/cf/openbsd.h          |   144 +
 usr.sbin/dhcp/includes/cf/qnx.h              |    58 +-
 usr.sbin/dhcp/includes/cf/rhapsody.h         |    68 +-
 usr.sbin/dhcp/includes/cf/sample.h           |    40 +-
 usr.sbin/dhcp/includes/cf/sco.h              |    69 +-
 usr.sbin/dhcp/includes/cf/sunos4.h           |    71 +-
 usr.sbin/dhcp/includes/cf/sunos5-5.h         |   105 +-
 usr.sbin/dhcp/includes/cf/ultrix.h           |    73 +-
 usr.sbin/dhcp/includes/dhcp.h                |    24 +-
 usr.sbin/dhcp/includes/dhctoken.h            |   319 +-
 usr.sbin/dhcp/includes/failover.h            |   256 +
 usr.sbin/dhcp/includes/hash.h                |    33 +-
 usr.sbin/dhcp/includes/inet.h                |    14 +-
 usr.sbin/dhcp/includes/isc/boolean.h         |    32 +
 usr.sbin/dhcp/includes/isc/dst.h             |   142 +
 usr.sbin/dhcp/includes/isc/int.h             |    36 +
 usr.sbin/dhcp/includes/isc/lang.h            |    29 +
 usr.sbin/dhcp/includes/isc/list.h            |   116 +
 usr.sbin/dhcp/includes/isc/result.h          |    89 +
 usr.sbin/dhcp/includes/isc/types.h           |    41 +
 usr.sbin/dhcp/includes/minires/minires.h     |   205 +
 usr.sbin/dhcp/includes/minires/res_update.h  |    50 +
 usr.sbin/dhcp/includes/minires/resolv.h      |   314 ++
 usr.sbin/dhcp/includes/netinet/if_ether.h    |     3 +-
 usr.sbin/dhcp/includes/netinet/ip.h          |    26 +-
 usr.sbin/dhcp/includes/omapip/alloc.h        |   108 +
 usr.sbin/dhcp/includes/omapip/buffer.h       |    92 +
 usr.sbin/dhcp/includes/omapip/omapip.h       |   401 ++
 usr.sbin/dhcp/includes/omapip/omapip_p.h     |   219 +
 usr.sbin/dhcp/includes/osdep.h               |    80 +-
 usr.sbin/dhcp/includes/site.h                |    67 +-
 usr.sbin/dhcp/includes/statement.h           |    99 +
 usr.sbin/dhcp/includes/tree.h                |   295 +-
 usr.sbin/dhcp/includes/version.h             |     3 +
 usr.sbin/dhcp/minires/.cvsignore             |     1 +
 usr.sbin/dhcp/minires/Makefile.dist          |    63 +
 usr.sbin/dhcp/minires/base64.c               |   319 ++
 usr.sbin/dhcp/minires/dst_api.c              |  1079 +++++++
 usr.sbin/dhcp/minires/dst_internal.h         |   160 +
 usr.sbin/dhcp/minires/hmac_link.c            |   494 +++
 usr.sbin/dhcp/minires/md5.h                  |   101 +
 usr.sbin/dhcp/minires/md5_dgst.c             |   373 ++
 usr.sbin/dhcp/minires/md5_locl.h             |   190 +
 usr.sbin/dhcp/minires/ns_date.c              |   129 +
 usr.sbin/dhcp/minires/ns_name.c              |   641 ++++
 usr.sbin/dhcp/minires/ns_parse.c             |   204 +
 usr.sbin/dhcp/minires/ns_samedomain.c        |   207 +
 usr.sbin/dhcp/minires/ns_sign.c              |   350 ++
 usr.sbin/dhcp/minires/ns_verify.c            |   469 +++
 usr.sbin/dhcp/minires/prandom.c              |   862 ++++++
 usr.sbin/dhcp/minires/res_comp.c             |   236 +
 usr.sbin/dhcp/minires/res_findzonecut.c      |   585 ++++
 usr.sbin/dhcp/minires/res_init.c             |   479 +++
 usr.sbin/dhcp/minires/res_mkquery.c          |   191 +
 usr.sbin/dhcp/minires/res_mkupdate.c         |  1097 +++++++
 usr.sbin/dhcp/minires/res_query.c            |   396 ++
 usr.sbin/dhcp/minires/res_send.c             |   853 ++++++
 usr.sbin/dhcp/minires/res_sendsigned.c       |   125 +
 usr.sbin/dhcp/minires/res_update.c           |   212 +
 usr.sbin/dhcp/minires/support.c              |   462 +++
 usr.sbin/dhcp/omapip/.cvsignore              |     3 +
 usr.sbin/dhcp/omapip/Makefile.dist           |    85 +
 usr.sbin/dhcp/omapip/alloc.c                 |   808 +++++
 usr.sbin/dhcp/omapip/buffer.c                |   503 +++
 usr.sbin/dhcp/omapip/connection.c            |   363 ++
 usr.sbin/dhcp/omapip/dispatch.c              |   436 +++
 usr.sbin/dhcp/omapip/errwarn.c               |   344 ++
 usr.sbin/dhcp/omapip/generic.c               |   265 +
 usr.sbin/dhcp/omapip/handle.c                |   304 ++
 usr.sbin/dhcp/omapip/listener.c              |   276 +
 usr.sbin/dhcp/omapip/message.c               |   654 ++++
 usr.sbin/dhcp/omapip/protocol.c              |   809 +++++
 usr.sbin/dhcp/omapip/result.c                |   104 +
 usr.sbin/dhcp/omapip/support.c               |   702 +++++
 usr.sbin/dhcp/omapip/test.c                  |   107 +
 usr.sbin/dhcp/relay/.cvsignore               |     3 +
 usr.sbin/dhcp/server/.cvsignore              |     5 +
 usr.sbin/dhcp/server/class.c                 |   263 +
 usr.sbin/dhcp/server/confpars.c              |  2514 +++++++++++++----
 usr.sbin/dhcp/server/db.c                    |   542 +++-
 usr.sbin/dhcp/server/failover.c              |  1467 ++++++++++
 usr.sbin/dhcp/server/mdb.c                   |  1587 +++++++++++
 usr.sbin/dhcp/server/omapi.c                 |  1724 ++++++++++++
 usr.sbin/dhcp/server/stables.c               |   760 +++++
 usr.sbin/dhcp/site.conf                      |     2 +
 155 files changed, 48238 insertions(+), 4521 deletions(-)

diffs (truncated from 58235 to 300 lines):

diff -r 8442a08ed8ca -r 0db1035ec3a0 usr.sbin/dhcp/.cvsignore
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.sbin/dhcp/.cvsignore  Sat Apr 22 07:11:26 2000 +0000
@@ -0,0 +1,1 @@
+Makefile
diff -r 8442a08ed8ca -r 0db1035ec3a0 usr.sbin/dhcp/ANONCVS
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.sbin/dhcp/ANONCVS     Sat Apr 22 07:11:26 2000 +0000
@@ -0,0 +1,129 @@
+         Anonymous CVS Access for the ISC DHCP Distribution
+
+The ISC DHCP distribution can be accessed using "anonymous" CVS.
+"Anonymous" cvs uses the CVS "pserver" mechanism to allow anybody on
+the Internet to access a CVS repository without having to register in
+any way.   Anonymous CVS allows you to access changes as soon as the
+DHCP developers commit them, rather than having to wait for the next
+snapshot or patchlevel.   Changes that have not yet been released yet
+are not guaranteed to work, but they can nonetheless be useful in many
+cases.
+
+                         TABLE OF CONTENTS
+
+               1. What is anonymous CVS?
+               2. How can i start using it?
+               3. Checking out the latest code in a release
+               4. Checking out the latest code
+               5. Checking out a specific release
+               6. When to update
+
+                       WHAT IS ANONYMOUS CVS?
+
+Anonymous CVS also allows you to browse through the history of the
+DHCP distribution, and examine the revision history of specific files
+to see how they have changed between revisions, to try to figure out
+why something that was working before is no longer working, or just to
+see when a certain change was made.
+
+                     HOW CAN I START USING IT?
+
+To use anonymous CVS to access the DHCP distribution, you must first
+"log in".   You should only need to do this once, but it is a
+necessary step, even though access is anonymous.   Anonymous users log
+in as user "nobody", password "nobody".   To do this, type:
+
+       cvs -d :pserver:nobody%dhcp.cvs.isc.org@localhost:/cvsroot login
+
+You will be prompted for a password - type "nobody".   If you get some
+kind of error indicating that cvs doesn't know how to log you in, you
+are probably running an old version of cvs, and should upgrade.   This
+should work with cvs version 1.10.
+
+Once you have logged in, you can check out a version of the DHCP
+distribution, so the next question is, which version?
+
+             CHECKING OUT THE LATEST CODE IN A RELEASE
+
+There are currently four major versions of the distribution - Release
+1, Release 2, Release 3, and the current development tree.   Releases
+1, 2 and 3 are branches in the CVS repository.   To check out the
+latest code on any of these branches, you would use a branch tag of
+RELEASE_1, RELEASE_2 or RELEASE_3 in the following command:
+
+       (setenv CVSROOT :pserver:nobody%dhcp.cvs.isc.org@localhost:/cvsroot;
+        cvs checkout -d dhcp-2.0 -r RELEASE_2 DHCP)
+
+Note that the example is for Release 2.
+
+                    CHECKING OUT THE LATEST CODE
+
+To check out the current engineering version, use:
+
+       (setenv CVSROOT :pserver:nobody%dhcp.cvs.isc.org@localhost:/cvsroot;
+        cvs checkout -d dhcp-current DHCP)
+
+Note that the current engineering version is a work in progress, and
+there is no real guarantee that it will work for you.
+
+                  CHECKING OUT A SPECIFIC RELEASE
+
+You can also check out specific versions of the DHCP distribution.
+There are three kinds of version tags you may find - alpha tags, beta
+tags and release tags.   Alpha tags look like this:
+
+       V#-ALPHA-YYYYMMDD
+
+# is the release number.   YYYYMMDD is the date of the release, with a
+4-digit year, the month expressed as a number (January=1), and the day
+of the month specified as a number, with the first day of the month
+being 1.
+
+Beta tags look like this:
+
+       V#-BETA-%-PATCH-*
+
+Where # is the release number, % is the Beta number (usually 1) and *
+is the patchlevel.   In the future there may also be beta tags that
+look like this:
+
+       V#-#-BETA-%-PATCH-*
+
+Where #-# is the major version followed by the minor version - for
+example, when the first 3.1 beta comes out, the tag will look like
+this:
+
+       V3-1-BETA-1-PATCH-0
+
+Release tags look like this:
+
+       V#-%-*
+
+Where # is the major version, % is the minor version, and * is the
+patchlevel.   So the tag for 1.0pl2 is V1-0-2, and to check it out,
+you'd type:
+
+       (setenv CVSROOT :pserver:nobody%dhcp.cvs.isc.org@localhost:/cvsroot;
+        cvs checkout -d dhcp-1.0pl2 -rV1-0-2 DHCP)
+
+Whenever changes are checked in to the ISC DHCP repository, or files
+are tagged, a notice is sent to the dhcp-source-changes%isc.org@localhost
+mailing list.   You can subscribe to this list by sending mail to
+dhcp-source-changes-request%isc.org@localhost, and you will then get immediate
+notification when changes are made.   You may find the volume of mail
+on this list annoying, however.
+
+                           WHEN TO UPDATE
+
+We do not recommend that you do an update immediately after you see a
+change on the dhcp-source-changes mailing list - instead, it's best to
+wait a while to make sure that any changes that change depends on have
+also been committed.   Also, sometimes when development is being done
+on two machines, the developers will check in a tentative change that
+hasn't been tested at all so that they can update on a different
+machine and test the change.   The best way to avoid accidentally
+getting one of these changes is to not update aggressively - when a
+change is made, wait a while before updating, to make sure that it's
+not going to be quickly followed by another change.
+
+
diff -r 8442a08ed8ca -r 0db1035ec3a0 usr.sbin/dhcp/COPYRIGHT
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.sbin/dhcp/COPYRIGHT   Sat Apr 22 07:11:26 2000 +0000
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 1996-1999 Internet Software Consortium.
+ * Use is subject to license terms which appear in the file named
+ * ISC-LICENSE that should have accompanied this file when you
+ * received it.   If a file named ISC-LICENSE did not accompany this
+ * file, or you are not sure the one you have is correct, you may
+ * obtain an applicable copy of the license at:
+ *
+ *             http://www.isc.org/isc-license-1.0.html. 
+ *
+ * This file is part of the ISC DHCP distribution.   The documentation
+ * associated with this file is listed in the file DOCUMENTATION,
+ * included in the top-level directory of this release.
+ *
+ * Support and other services are available for ISC products - see
+ * http://www.isc.org for more information.
+ */
diff -r 8442a08ed8ca -r 0db1035ec3a0 usr.sbin/dhcp/DOCUMENTATION
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.sbin/dhcp/DOCUMENTATION       Sat Apr 22 07:11:26 2000 +0000
@@ -0,0 +1,13 @@
+README
+RELNOTES
+common/dhcp-options.5
+common/dhcp-eval.5
+client/dhclient.8
+client/dhclient.conf.5
+client/dhclient.leases.5
+client/dhcp-script.5
+relay/dhcrelay.8
+server/dhcpd.8
+server/dhcpd.conf.5
+server/dhcpd.leases.5
+common/dhcp-contrib.html (the Contributions Manual Page)
diff -r 8442a08ed8ca -r 0db1035ec3a0 usr.sbin/dhcp/ISC-LICENSE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.sbin/dhcp/ISC-LICENSE Sat Apr 22 07:11:26 2000 +0000
@@ -0,0 +1,161 @@
+                      ISC LICENSE, Version 1.0
+
+1.  This license covers any file containing a statement following its
+    copyright message indicating that it is covered by this license.
+    It also covers any text or binary file, executable, electronic or
+    printed image that is derived from a file that is covered by this
+    license, or is a modified version of a file covered by this
+    license, whether such works exist now or in the future.
+    Hereafter, such works will be referred to as "works covered by
+    this license," or "covered works."
+
+2.  Each source file covered by this license contains a sequence of
+    text starting with the copyright message and ending with "Support
+    and other services are available for ISC products - see
+    http://www.isc.org for more information."   This will hereafter be
+    referred to as the file's Bootstrap License.
+
+3.  If you take significant portions of any source file covered by
+    this license and include those portions in some other file, then
+    you must also copy the Bootstrap License into that other file,
+    and that file becomes a covered file.   You may make a good-faith
+    judgement as to where in this file the bootstrap license should
+    appear.
+
+4.  The acronym "ISC", when used in this license or generally in the
+    context of works covered by this license, is an abbreviation for
+    the words "Internet Software Consortium."
+
+5.  A distribution, as referred to hereafter, is any file, collection
+    of printed text, CD ROM, boxed set, or other collection, physical
+    or electronic, which can be distributed as a single object and which
+    contains one or more works covered by this license.
+
+6.  You may make distributions containing covered files and provide
+    copies of such distributions to whomever you choose, with or
+    without charge, as long as you obey the other terms of this
+    license.  Except as stated in (9), you may include as many or as
+    few covered files as you choose in such distributions.
+
+7.  When making copies of covered works to distribute to others, you
+    must not remove or alter the Bootstrap License.  You may not place
+    your own copyright message, license, or similar statements in the
+    file prior to the original copyright message or anywhere within
+    the Bootstrap License.  Object files and executable files are
+    exempt from the restrictions specified in this clause.
+
+8.  If the version of a covered source file as you received it, when
+    compiled, would normally produce executable code that would print
+    a copyright message followed by a message referring to an ISC web
+    page or other ISC documentation, you may not modify the the file
+    in such a way that, when compiled, it no longer produces
+    executable code to print such a message when invoked in the same way.
+
+9.  Any source file covered by this license will specify within the
+    Bootstrap License the name of the ISC distribution from which it
+    came, as well as a list of associated documentation files.  The
+    associated documentation for a binary file is the same as the
+    associated documentation for the source file or files from which
+    it was derived.   Associated documentation files contain
+    human-readable documentation which the ISC intends to accompany
+    any distribution.
+
+    If you produce a distribution, then for every covered file in that
+    distribution, you must include all of the associated documentation
+    files for that file.  You need only include one copy of each such
+    documentation file in such distributions.
+
+    Absence of required documentation files from a distribution you
+    receive or absence of the list of documentation files from a
+    source file covered by this license does not excuse you from this
+    from this requirement.  If the distribution you receive does not
+    contain these files, you must obtain them from the ISC and include
+    them in any redistribution of any work covered by this license.
+    For information on how to obtain required documentation not
+    included with your distribution, see:
+
+           http://www.isc.org/getting-documentation.html.
+
+    If the list of documentation files was removed from your copy of a
+    covered work, you must obtain such a list from the ISC.   The
+    web page at http://www.isc.org/getting-documentation.html contains
+    pointers to lists of files for each ISC distribution covered by
+    this license.
+
+    It is permissible in a source or binary distribution containing
+    covered works to include reformatted versions of the documentation
+    files.  It is also permissible to add to or modify the
+    documentation files, as long as the formatting is similar in
+    legibility, readability, font, and font size to other documentation
+    in the derived product, as long as any sections labeled
+    CONTRIBUTIONS in these files are unchanged except with respect to
+    formatting, as long as the order in which the CONTRIBUTIONS section
+    appears in these files is not changed, and as long as the manual
+    page which describes how to contribute to the Internet Software
+    Consortium (hereafter referred to as the Contributions Manual Page)
+    is unchanged except with respect to formatting.
+
+    Documentation that has been translated into another natural
+    language may be included in place of or in addition to the
+    required documentation, so long as the CONTRIBUTIONS section and
+    the Contributions Manual Page are either left in their original
+    language or translated into the new language with such care and
+    diligence as is required to preserve the original meaning.
+
+10. You must include this license with any distribution that you make,
+    in such a way that it is clearly associated with such covered works
+    as are present in that distribution.  In any electronic
+    distribution, the license must be in a file called "ISC-LICENSE".
+
+    If you make a distribution that contains works from more than one
+    ISC distribution, you may either include a copy of the ISC-LICENSE
+    file that accompanied each such ISC distribution in such a way that
+    works covered by each license are all clearly grouped with that
+    license, or you may include the single copy of the ISC-LICENSE that
+    has the highest version number of all the ISC-LICENSE files
+    included with such distributions, in which case all covered works
+    will be covered by that single license file.   The version number
+    of a license appears at the top of the file containing the text of
+    that license, or if in printed form, at the top of the first page
+    of that license.



Home | Main Index | Thread Index | Old Index