Print this page
7388 Support DHCP Client FQDN. Allow IAID/DUID for all v4.

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/sbin/dhcpagent/defaults.c
          +++ new/usr/src/cmd/cmd-inet/sbin/dhcpagent/defaults.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
  24   25   */
  25   26  
  26   27  #include <sys/types.h>
  27   28  #include <stdlib.h>
  28   29  #include <string.h>
  29   30  #include <ctype.h>
  30   31  #include <dhcpmsg.h>
  31   32  #include <stdio.h>
  32   33  #include <sys/stat.h>
  33   34  #include <libnvpair.h>
↓ open down ↓ 18 lines elided ↑ open up ↑
  52   53          { "RELEASE_ON_SIGTERM",  "0",    0,   0   },
  53   54          { "IGNORE_FAILED_ARP",   "1",    0,   -1  },
  54   55          { "OFFER_WAIT",          "3",    1,   20  },
  55   56          { "ARP_WAIT",            "1000", 0,   -1  },
  56   57          { "CLIENT_ID",           NULL,   0,   0   },
  57   58          { "PARAM_REQUEST_LIST",  NULL,   0,   0   },
  58   59          { "REQUEST_HOSTNAME",    "1",    0,   0   },
  59   60          { "DEBUG_LEVEL",         "0",    0,   3   },
  60   61          { "VERBOSE",             "0",    0,   0   },
  61   62          { "VERIFIED_LEASE_ONLY", "0",    0,   0   },
  62      -        { "PARAM_IGNORE_LIST",   NULL,   0,   0   }
       63 +        { "PARAM_IGNORE_LIST",   NULL,   0,   0   },
       64 +        { "REQUEST_FQDN",        "1",    0,   0   },
       65 +        { "V4_DEFAULT_IAID_DUID",  "0",  0,   0   },
  63   66  };
  64   67  
  65   68  /*
  66   69   * df_build_cache(): builds the defaults nvlist cache
  67   70   *
  68   71   *   input: void
  69   72   *  output: a pointer to an nvlist of the current defaults, or NULL on failure
  70   73   */
  71   74  
  72   75  static nvlist_t *
↓ open down ↓ 215 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX