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

Split Close
Expand all
Collapse all
          --- old/usr/src/common/net/dhcp/dhcp_impl.h
          +++ new/usr/src/common/net/dhcp/dhcp_impl.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 2007 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 _DHCP_IMPL_H
  27   28  #define _DHCP_IMPL_H
  28   29  
  29   30  #pragma ident   "%Z%%M% %I%     %E% SMI"
  30   31  
  31   32  /*
  32   33   * Common definitions used by Sun DHCP implementations
  33   34   */
↓ open down ↓ 53 lines elided ↑ open up ↑
  87   88  
  88   89  /*
  89   90   * Generic DHCP option structure.
  90   91   */
  91   92  typedef struct {
  92   93          uint8_t    code;
  93   94          uint8_t    len;
  94   95          uint8_t    value[1];
  95   96  } DHCP_OPT;
  96   97  
       98 +/*
       99 + * Defines the size of DHCP_OPT code + len
      100 + */
      101 +#define DHCP_OPT_META_LEN       2
      102 +
  97  103  typedef union sockaddr46_s {
  98  104          struct sockaddr_in v4;
  99  105          struct sockaddr_in6 v6;
 100  106  } sockaddr46_t;
 101  107  
 102  108  /*
 103  109   * Generic DHCP packet list. Ensure that _REENTRANT bracketed code stays at
 104  110   * bottom of this definition - the client doesn't include it. Scan.c in
 105  111   * libdhcp isn't aware of it either...
 106  112   *
↓ open down ↓ 45 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX