summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McDonald <danmcd@omniti.com>2014-01-19 11:47:59 -0500
committerDan McDonald <danmcd@omniti.com>2014-01-20 15:14:01 -0500
commit843ea7097d26ad78b15935c6a5e1bbafc8f9af90 (patch)
treeac11f8afb9e09d3a30981883fca5f12388d1b017
parentc1ca8c1d77967585bfbe78133a7257e36ebfec85 (diff)
downloadillumos-joyent-843ea7097d26ad78b15935c6a5e1bbafc8f9af90.tar.gz
4510 Lose SIOC*IPSECONFIG ioctl definitions
Reviewed by: Marcel Telka <marcel@telka.sk> Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com> Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r--usr/src/cmd/truss/codes.c6
-rw-r--r--usr/src/uts/common/inet/ip/ip.c12
-rw-r--r--usr/src/uts/common/inet/ip/ip_if.c5
-rw-r--r--usr/src/uts/common/sys/sockio.h8
4 files changed, 14 insertions, 17 deletions
diff --git a/usr/src/cmd/truss/codes.c b/usr/src/cmd/truss/codes.c
index ac8a9b191f..069268dc05 100644
--- a/usr/src/cmd/truss/codes.c
+++ b/usr/src/cmd/truss/codes.c
@@ -24,7 +24,7 @@
* Copyright (c) 2013 by Delphix. All rights reserved.
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2012, Joyent, Inc. All rights reserved.
- * Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
+ * Copyright (c) 2014, OmniTI Computer Consulting, Inc. All rights reserved.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -854,10 +854,6 @@ const struct ioc {
{ (uint_t)SIOCTMYADDR, "SIOCTMYADDR", "sioc_addrreq" },
{ (uint_t)SIOCTONLINK, "SIOCTONLINK", "sioc_addrreq" },
{ (uint_t)SIOCTMYSITE, "SIOCTMYSITE", "sioc_addrreq" },
- { (uint_t)SIOCFIPSECONFIG, "SIOCFIPSECONFIG", NULL },
- { (uint_t)SIOCSIPSECONFIG, "SIOCSIPSECONFIG", NULL },
- { (uint_t)SIOCDIPSECONFIG, "SIOCDIPSECONFIG", NULL },
- { (uint_t)SIOCLIPSECONFIG, "SIOCLIPSECONFIG", NULL },
{ (uint_t)SIOCGLIFBINDING, "SIOCGLIFBINDING", "lifreq" },
{ (uint_t)SIOCSLIFGROUPNAME, "SIOCSLIFGROUPNAME", "lifreq" },
{ (uint_t)SIOCGLIFGROUPNAME, "SIOCGLIFGROUPNAME", "lifreq" },
diff --git a/usr/src/uts/common/inet/ip/ip.c b/usr/src/uts/common/inet/ip/ip.c
index 1902a00651..313c6120ed 100644
--- a/usr/src/uts/common/inet/ip/ip.c
+++ b/usr/src/uts/common/inet/ip/ip.c
@@ -23,6 +23,7 @@
* Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1990 Mentat Inc.
* Copyright (c) 2012 Joyent, Inc. All rights reserved.
+ * Copyright (c) 2014, OmniTI Computer Consulting, Inc. All rights reserved.
*/
#include <sys/types.h>
@@ -1027,11 +1028,12 @@ ip_ioctl_cmd_t ip_ndx_ioctl_table[] = {
MISC_CMD, ip_sioctl_tmysite, NULL },
/* 147 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL },
/* 148 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL },
- /* IPSECioctls handled in ip_sioctl_copyin_setup itself */
- /* 149 */ { SIOCFIPSECONFIG, 0, IPI_PRIV, MISC_CMD, NULL, NULL },
- /* 150 */ { SIOCSIPSECONFIG, 0, IPI_PRIV, MISC_CMD, NULL, NULL },
- /* 151 */ { SIOCDIPSECONFIG, 0, IPI_PRIV, MISC_CMD, NULL, NULL },
- /* 152 */ { SIOCLIPSECONFIG, 0, IPI_PRIV, MISC_CMD, NULL, NULL },
+
+ /* Old *IPSECONFIG ioctls are now deprecated, now see spdsock.c */
+ /* 149 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL },
+ /* 150 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL },
+ /* 151 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL },
+ /* 152 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL },
/* 153 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL },
diff --git a/usr/src/uts/common/inet/ip/ip_if.c b/usr/src/uts/common/inet/ip/ip_if.c
index 226a7fd212..905197a9fa 100644
--- a/usr/src/uts/common/inet/ip/ip_if.c
+++ b/usr/src/uts/common/inet/ip/ip_if.c
@@ -22,6 +22,7 @@
* Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1990 Mentat Inc.
* Copyright (c) 2013 by Delphix. All rights reserved.
+ * Copyright (c) 2014, OmniTI Computer Consulting, Inc. All rights reserved.
*/
/*
@@ -9189,7 +9190,9 @@ ip_sioctl_copyin_setup(queue_t *q, mblk_t *mp)
return;
default:
- cmn_err(CE_PANIC, "should not happen ");
+ cmn_err(CE_WARN, "Unknown ioctl %d/0x%x slipped through.",
+ iocp->ioc_cmd, iocp->ioc_cmd);
+ /* FALLTHRU */
}
nak:
if (mp->b_cont != NULL) {
diff --git a/usr/src/uts/common/sys/sockio.h b/usr/src/uts/common/sys/sockio.h
index e7ce53eb16..d36778b982 100644
--- a/usr/src/uts/common/sys/sockio.h
+++ b/usr/src/uts/common/sys/sockio.h
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, OmniTI Computer Consulting, Inc. All rights reserved.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
@@ -209,12 +210,7 @@ extern "C" {
#define SIOCTMYSITE _IOWR('i', 146, struct sioc_addrreq)
/* In this site? */
-/* 147 and 148 were SIOC*TUNPARAM ioctls. Feel free to re-use. */
-
-#define SIOCFIPSECONFIG _IOW('i', 149, 0) /* Flush Policy */
-#define SIOCSIPSECONFIG _IOW('i', 150, 0) /* Set Policy */
-#define SIOCDIPSECONFIG _IOW('i', 151, 0) /* Delete Policy */
-#define SIOCLIPSECONFIG _IOW('i', 152, 0) /* List Policy */
+/* 147-152 were SIOC*{TUNPARAM,IPSECONFIG} ioctls. Feel free to re-use. */
/*
* 153 can be reused (was consolidation-private SIOCLIFFAILOVER).