Print this page
Commit IPMP changes

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h
          +++ new/usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_impl.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _IPMGMT_IMPL_H
  27   28  #define _IPMGMT_IMPL_H
  28   29  
  29   30  #ifdef  __cplusplus
  30   31  extern "C" {
  31   32  #endif
  32   33  
  33   34  #include <net/if.h>
↓ open down ↓ 8 lines elided ↑ open up ↑
  42   43  #define IPMGMTD_FMRI            "svc:/network/ip-interface-management:default"
  43   44  
  44   45  /* ipmgmt_door.c */
  45   46  extern void     ipmgmt_handler(void *, char *, size_t, door_desc_t *, uint_t);
  46   47  
  47   48  /* ipmgmt_util.c */
  48   49  extern void     ipmgmt_log(int, const char *, ...);
  49   50  extern int      ipmgmt_cpfile(const char *, const char *, boolean_t);
  50   51  
  51   52  /* ipmgmt_persist.c */
       53 +extern boolean_t ipmgmt_persist_if_exists(const char *, sa_family_t);
       54 +extern void ipmgmt_get_group_interface(const char *, char *, size_t);
  52   55  
  53   56  /*
  54   57   * following are the list of DB walker callback functions and the callback
  55   58   * arguments for each of the callback functions used by the daemon
  56   59   */
  57   60  /* following functions take 'ipmgmt_prop_arg_t' as the callback argument */
  58   61  extern db_wfunc_t       ipmgmt_db_getprop, ipmgmt_db_resetprop;
  59   62  
  60   63  /* following functions take ipadm_dbwrite_cbarg_t as callback argument */
  61      -extern db_wfunc_t       ipmgmt_db_add, ipmgmt_db_update;
       64 +extern db_wfunc_t       ipmgmt_db_add, ipmgmt_db_update, ipmgmt_db_update_if;
  62   65  
  63   66  typedef struct {
  64      -        char            *cb_ifname;
  65      -        ipadm_if_info_t *cb_ifinfo;
  66      -} ipmgmt_getif_cbarg_t;
  67      -extern db_wfunc_t       ipmgmt_db_getif;
  68      -
  69      -typedef struct {
  70      -        char            *cb_aobjname;
  71      -        char            *cb_ifname;
       67 +        char    *cb_ifname;
       68 +        char    *cb_aobjname;
  72   69          nvlist_t        *cb_onvl;
  73      -        int             cb_ocnt;
  74      -} ipmgmt_getaddr_cbarg_t;
       70 +        int     cb_ocnt;
       71 +} ipmgmt_get_cbarg_t;
       72 +extern db_wfunc_t       ipmgmt_db_getif;
  75   73  extern db_wfunc_t       ipmgmt_db_getaddr;
  76   74  
  77   75  typedef struct {
  78   76          sa_family_t     cb_family;
  79   77          char            *cb_ifname;
       78 +    boolean_t   cb_ipv4exists;
       79 +    boolean_t   cb_ipv6exists;
  80   80  } ipmgmt_if_cbarg_t;
  81   81  extern db_wfunc_t       ipmgmt_db_setif, ipmgmt_db_resetif;
  82   82  
  83   83  typedef struct {
  84   84          char            *cb_aobjname;
  85   85  } ipmgmt_resetaddr_cbarg_t;
  86   86  extern db_wfunc_t       ipmgmt_db_resetaddr;
  87   87  
  88   88  typedef struct {
  89   89          sa_family_t     cb_family;
↓ open down ↓ 74 lines elided ↑ open up ↑
 164  164  typedef struct scf_resources {
 165  165          scf_handle_t            *sr_handle;
 166  166          scf_instance_t          *sr_inst;
 167  167          scf_propertygroup_t     *sr_pg;
 168  168          scf_property_t          *sr_prop;
 169  169          scf_value_t             *sr_val;
 170  170          scf_transaction_t       *sr_tx;
 171  171          scf_transaction_entry_t *sr_ent;
 172  172  } scf_resources_t;
 173  173  
      174 +extern int              ipmgmt_update_family_nvp(nvlist_t *,
      175 +                            sa_family_t, uint_t);
 174  176  extern int              ipmgmt_db_walk(db_wfunc_t *, void *, ipadm_db_op_t);
 175  177  extern int              ipmgmt_aobjmap_op(ipmgmt_aobjmap_t *, uint32_t);
 176  178  extern boolean_t        ipmgmt_aobjmap_init(void *, nvlist_t *, char *,
 177  179                              size_t, int *);
 178  180  extern int              ipmgmt_persist_aobjmap(ipmgmt_aobjmap_t *,
 179  181                              ipadm_db_op_t);
 180  182  extern boolean_t        ipmgmt_ngz_firstboot_postinstall();
 181  183  extern int              ipmgmt_persist_if(ipmgmt_if_arg_t *);
 182  184  extern void             ipmgmt_init_prop();
 183  185  extern boolean_t        ipmgmt_db_upgrade(void *, nvlist_t *, char *,
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX