Print this page
4174 Torch the old and unmaintained Sun-dhcp
Reviewed by: Josef Sipek <jeffpc@josefsipek.net>
Reviewed by: Garrett D'Amore <garrett@damore.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdhcputil/common/dhcp_symbol.h
          +++ new/usr/src/lib/libdhcputil/common/dhcp_symbol.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  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 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   */
  25   27  
  26   28  #ifndef _DHCP_SYMBOL_H
  27   29  #define _DHCP_SYMBOL_H
  28   30  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   31  /*
  32   32   * This file, along with <dhcp_symbol_common.h>, contains the DHCP symbol
  33   33   * constants and the definitions for the external interfaces to the parsing
  34   34   * logic (contained in dhcp_symbol.c) for symbol definitions. These
  35   35   * definitions can and should be used by all consumers of DHCP symbols.
  36   36   */
  37   37  
  38   38  #include <sys/types.h>
  39      -#include <dhcp_svc_private.h>
  40   39  #include <dhcp_symbol_common.h>
  41   40  
  42   41  #ifdef  __cplusplus
  43   42  extern "C" {
  44   43  #endif
  45   44  
  46   45  /*
  47   46   * Vendor class length (and implicitly, the number of classes)
  48   47   */
  49      -#define DSYM_CLASS_SIZE         DSVC_MAX_MACSYM_LEN     /* Single class max */
       48 +#define DSYM_CLASS_SIZE         128                     /* Single class max */
  50   49  #define DSYM_MAX_CLASS_SIZE     (DSYM_CLASS_SIZE * 10)  /* At least 10 */
  51   50  
  52   51  /*
  53      - * Maximum symbol length is defined by the libdhcpsvc.
       52 + * Maximum symbol length
  54   53   */
  55      -#define DSYM_MAX_SYM_LEN        DSVC_MAX_MACSYM_LEN
       54 +#define DSYM_MAX_SYM_LEN        128
  56   55  
  57   56  /*
  58   57   * symbol parsing error codes
  59   58   */
  60   59  typedef enum {
  61   60          DSYM_SUCCESS,
  62   61          DSYM_SYNTAX_ERROR,
  63   62          DSYM_NULL_FIELD,
  64   63          DSYM_TOO_MANY_FIELDS,
  65   64          DSYM_CODE_OUT_OF_RANGE,
↓ open down ↓ 68 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX