summaryrefslogtreecommitdiff
path: root/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c')
-rw-r--r--usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c b/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c
index e3a8d3e817..3573ca40ca 100644
--- a/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c
+++ b/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c
@@ -21,7 +21,7 @@
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
- * Copyright 2021, Tintri by DDN. All rights reserved.
+ * Copyright 2021 Tintri by DDN, Inc. All rights reserved.
*/
/*
@@ -522,31 +522,6 @@ child_out:
}
/*
- * Return TRUE if `ifname' has persistent configuration for the `af' address
- * family in the datastore
- */
-static boolean_t
-ipmgmt_persist_if_exists(char *ifname, sa_family_t af)
-{
- ipmgmt_getif_cbarg_t cbarg;
- boolean_t exists = B_FALSE;
- ipadm_if_info_t *ifp;
-
- bzero(&cbarg, sizeof (cbarg));
- cbarg.cb_ifname = ifname;
- (void) ipmgmt_db_walk(ipmgmt_db_getif, &cbarg, IPADM_DB_READ);
- if (cbarg.cb_ifinfo != NULL) {
- ifp = &cbarg.cb_ifinfo->ifil_ifi;
- if ((af == AF_INET && (ifp->ifi_pflags & IFIF_IPV4)) ||
- (af == AF_INET6 && (ifp->ifi_pflags & IFIF_IPV6))) {
- exists = B_TRUE;
- }
- }
- free(cbarg.cb_ifinfo);
- return (exists);
-}
-
-/*
* Persist any NGZ interfaces assigned to us from the global zone if they do
* not already exist in the persistent db. We need to
* do this before any calls to ipadm_enable_if() can succeed (i.e.,