Print this page
4510 Lose SIOC*IPSECONFIG ioctl definitions
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ip/ip_if.c
          +++ new/usr/src/uts/common/inet/ip/ip_if.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  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 (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright (c) 1990 Mentat Inc.
  24   24   * Copyright (c) 2013 by Delphix. All rights reserved.
       25 + * Copyright (c) 2014, OmniTI Computer Consulting, Inc. All rights reserved.
  25   26   */
  26   27  
  27   28  /*
  28   29   * This file contains the interface control functions for IP.
  29   30   */
  30   31  
  31   32  #include <sys/types.h>
  32   33  #include <sys/stream.h>
  33   34  #include <sys/dlpi.h>
  34   35  #include <sys/stropts.h>
↓ open down ↓ 9147 lines elided ↑ open up ↑
9182 9183  
9183 9184          case SIOCILB:
9184 9185                  /* The ioctl length varies depending on the ILB command. */
9185 9186                  copyin_size = iocp->ioc_count;
9186 9187                  if (copyin_size < sizeof (ilb_cmd_t))
9187 9188                          goto nak;
9188 9189                  mi_copyin(q, mp, NULL, copyin_size);
9189 9190                  return;
9190 9191  
9191 9192          default:
9192      -                cmn_err(CE_PANIC, "should not happen ");
     9193 +                cmn_err(CE_WARN, "Unknown ioctl %d/0x%x slipped through.",
     9194 +                    iocp->ioc_cmd, iocp->ioc_cmd);
     9195 +                /* FALLTHRU */
9193 9196          }
9194 9197  nak:
9195 9198          if (mp->b_cont != NULL) {
9196 9199                  freemsg(mp->b_cont);
9197 9200                  mp->b_cont = NULL;
9198 9201          }
9199 9202          iocp->ioc_error = EINVAL;
9200 9203          mp->b_datap->db_type = M_IOCNAK;
9201 9204          iocp->ioc_count = 0;
9202 9205          qreply(q, mp);
↓ open down ↓ 9935 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX