diff options
Diffstat (limited to 'usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h')
-rw-r--r-- | usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h b/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h index 968fa77923..fe7e95a87e 100644 --- a/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h +++ b/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h @@ -22,7 +22,7 @@ /* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2016, Chris Fraire <cfraire@me.com>. - * Copyright 2021, Tintri by DDN. All rights reserved. + * Copyright 2021 Tintri by DDN, Inc. All rights reserved. */ #ifndef _IPMGMT_IMPL_H @@ -51,6 +51,8 @@ extern void ipmgmt_log(int, const char *, ...); extern int ipmgmt_cpfile(const char *, const char *, boolean_t); /* ipmgmt_persist.c */ +extern boolean_t ipmgmt_persist_if_exists(const char *, sa_family_t); +extern void ipmgmt_get_group_interface(const char *, char *, size_t); /* * following are the list of DB walker callback functions and the callback @@ -60,25 +62,22 @@ extern int ipmgmt_cpfile(const char *, const char *, boolean_t); extern db_wfunc_t ipmgmt_db_getprop, ipmgmt_db_resetprop; /* following functions take ipadm_dbwrite_cbarg_t as callback argument */ -extern db_wfunc_t ipmgmt_db_add, ipmgmt_db_update; +extern db_wfunc_t ipmgmt_db_add, ipmgmt_db_update, ipmgmt_db_update_if; typedef struct { - char *cb_ifname; - ipadm_if_info_list_t *cb_ifinfo; -} ipmgmt_getif_cbarg_t; -extern db_wfunc_t ipmgmt_db_getif; - -typedef struct { - char *cb_aobjname; - char *cb_ifname; + char *cb_ifname; + char *cb_aobjname; nvlist_t *cb_onvl; - int cb_ocnt; -} ipmgmt_getaddr_cbarg_t; + int cb_ocnt; +} ipmgmt_get_cbarg_t; +extern db_wfunc_t ipmgmt_db_getif; extern db_wfunc_t ipmgmt_db_getaddr; typedef struct { sa_family_t cb_family; char *cb_ifname; + boolean_t cb_ipv4exists; + boolean_t cb_ipv6exists; } ipmgmt_if_cbarg_t; extern db_wfunc_t ipmgmt_db_setif, ipmgmt_db_resetif; @@ -182,6 +181,8 @@ typedef struct scf_resources { scf_transaction_entry_t *sr_ent; } scf_resources_t; +extern int ipmgmt_update_family_nvp(nvlist_t *, + sa_family_t, uint_t); extern int ipmgmt_db_walk(db_wfunc_t *, void *, ipadm_db_op_t); extern int ipmgmt_aobjmap_op(ipmgmt_aobjmap_t *, uint32_t); extern boolean_t ipmgmt_aobjmap_init(void *, nvlist_t *, char *, |