diff options
author | Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> | 2021-08-04 15:22:53 +0200 |
---|---|---|
committer | Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> | 2021-11-22 12:30:03 +0100 |
commit | a73be61a80f7331c35adfa540bcf8f1546ff1e33 (patch) | |
tree | c0c72232c78479d3333c9ec6efdc60f0e75f6784 /usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_main.c | |
parent | f81209f5137586c57e31f7d74b929149299d9b3c (diff) | |
download | illumos-gate-a73be61a80f7331c35adfa540bcf8f1546ff1e33.tar.gz |
2554 ipadm needs IPMP configuration support
Contributed by: Ivan Krivonos <ivan.krivonos@nexenta.com>
Contributed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Yuri Pankov <ypankov@tintri.com>
Reviewed by: Andy Fiddaman <andyf@omnios.com>
Reviewed by: Ryan Goodfellow <ryan.goodfellow@oxide.computer>
Approved by: Richard Lowe <richlowe@richlowe.net>
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.c | 27 |
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., |