summaryrefslogtreecommitdiff
path: root/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h
diff options
context:
space:
mode:
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.h9
1 files changed, 9 insertions, 0 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 36768b5ae0..4388c29971 100644
--- a/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h
+++ b/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h
@@ -45,6 +45,7 @@ extern void ipmgmt_handler(void *, char *, size_t, door_desc_t *, uint_t);
/* ipmgmt_util.c */
extern void ipmgmt_log(int, const char *, ...);
+extern int ipmgmt_cpfile(const char *, const char *, boolean_t);
/* ipmgmt_persist.c */
@@ -137,8 +138,16 @@ extern ipmgmt_aobjmap_list_t aobjmap;
* in-memory copy of list `aobjmap' on disk. This is done to recover from
* daemon reboot (using svcadm) or crashes.
*/
+#define IPADM_TMPFS_DIR "/etc/svc/volatile/ipadm"
#define ADDROBJ_MAPPING_DB_FILE IPADM_TMPFS_DIR"/aobjmap.conf"
+/*
+ * A temporary copy of the ipadm configuration file might need
+ * to be created if write requests are encountered during boottime
+ * and the root filesystem is mounted read-only.
+ */
+#define IPADM_VOL_DB_FILE IPADM_TMPFS_DIR"/ipadm.conf"
+
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 *,