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/ipc_action.c
          +++ new/usr/src/cmd/cmd-inet/sbin/dhcpagent/ipc_action.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 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  #pragma ident   "%Z%%M% %I%     %E% SMI"
  27   28  
  28   29  #include <stdlib.h>
  29   30  #include <sys/types.h>
  30   31  #include <dhcpmsg.h>
  31   32  #include <dhcpagent_ipc.h>
  32   33  
  33   34  #include "agent.h"
↓ open down ↓ 65 lines elided ↑ open up ↑
  99  100                  }
 100  101  
 101  102                  hold_smach(dsmp);
 102  103          }
 103  104  
 104  105          *ia = *iareq;
 105  106  
 106  107          /* We've taken ownership, so the input request is now invalid */
 107  108          ipc_action_init(iareq);
 108  109  
 109      -        dhcpmsg(MSG_DEBUG, "ipc_action_start: started %s (command %d) on %s",
 110      -            dhcp_ipc_type_to_string(ia->ia_cmd), ia->ia_cmd, dsmp->dsm_name);
      110 +        dhcpmsg(MSG_DEBUG, "ipc_action_start: started %s (command %d) on %s,"
      111 +            " buffer length %u",
      112 +            dhcp_ipc_type_to_string(ia->ia_cmd), ia->ia_cmd, dsmp->dsm_name,
      113 +            ia->ia_request == NULL ? 0 : ia->ia_request->data_length);
 111  114  
 112  115          dsmp->dsm_dflags |= DHCP_IF_BUSY;
 113  116  
 114  117          /* This cannot fail due to the async_cancel above */
 115  118          (void) async_start(dsmp, ia->ia_cmd, B_TRUE);
 116  119  
 117  120          return (B_TRUE);
 118  121  }
 119  122  
 120  123  /*
↓ open down ↓ 155 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX