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.h
          +++ new/usr/src/cmd/cmd-inet/sbin/dhcpagent/defaults.h
↓ 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  #ifndef DEFAULTS_H
  27   28  #define DEFAULTS_H
  28   29  
  29   30  #include <sys/types.h>
  30   31  
  31   32  /*
  32   33   * defaults.[ch] encapsulate the agent's interface to the dhcpagent
  33   34   * defaults file.  see defaults.c for documentation on how to use the
↓ open down ↓ 13 lines elided ↑ open up ↑
  47   48          DF_RELEASE_ON_SIGTERM,  /* send RELEASE on each if upon SIGTERM */
  48   49          _UNUSED_DF_IGNORE_FAILED_ARP,
  49   50          DF_OFFER_WAIT,          /* how long to wait to collect offers */
  50   51          _UNUSED_DF_ARP_WAIT,
  51   52          DF_CLIENT_ID,           /* our client id */
  52   53          DF_PARAM_REQUEST_LIST,  /* our parameter request list */
  53   54          DF_REQUEST_HOSTNAME,    /* request hostname associated with interface */
  54   55          DF_DEBUG_LEVEL,         /* set debug level (undocumented) */
  55   56          DF_VERBOSE,             /* set verbose mode (undocumented) */
  56   57          DF_VERIFIED_LEASE_ONLY, /* send RELEASE on SIGTERM and need verify */
  57      -        DF_PARAM_IGNORE_LIST    /* our parameter ignore list */
       58 +        DF_PARAM_IGNORE_LIST,   /* our parameter ignore list */
       59 +        DF_REQUEST_FQDN,        /* request client FQDN associated with interface */
       60 +        DF_V4_DEFAULT_IAID_DUID /* always IAID/DUID if no DF_CLIENT_ID */
  58   61  };
  59   62  
  60   63  #define DHCP_AGENT_DEFAULTS     "/etc/default/dhcpagent"
  61   64  
  62   65  boolean_t       df_get_bool(const char *, boolean_t, uint_t);
  63   66  int             df_get_int(const char *, boolean_t, uint_t);
  64   67  const char      *df_get_string(const char *, boolean_t, uint_t);
  65   68  
  66   69  #ifdef  __cplusplus
  67   70  }
  68   71  #endif
  69   72  
  70   73  #endif  /* DEFAULTS_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX