Print this page
Version bump SVP to 2

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/varpd/svp/common/libvarpd_svp.h
          +++ new/usr/src/lib/varpd/svp/common/libvarpd_svp.h
↓ open down ↓ 117 lines elided ↑ open up ↑
 118  118          SVP_CS_CONNECTING       = 0x02,
 119  119          SVP_CS_BACKOFF          = 0x03,
 120  120          SVP_CS_ACTIVE           = 0x04,
 121  121          SVP_CS_WINDDOWN         = 0x05
 122  122  } svp_conn_state_t;
 123  123  
 124  124  typedef enum svp_conn_error {
 125  125          SVP_CE_NONE             = 0x00,
 126  126          SVP_CE_ASSOCIATE        = 0x01,
 127  127          SVP_CE_NOPOLLOUT        = 0x02,
 128      -        SVP_CE_SOCKET           = 0x03
      128 +        SVP_CE_SOCKET           = 0x03,
      129 +        SVP_CE_VERSION_PONG     = 0x04
 129  130  } svp_conn_error_t;
 130  131  
 131  132  typedef enum svp_conn_flags {
 132  133          SVP_CF_ADDED            = 0x01,
 133  134          SVP_CF_DEGRADED         = 0x02,
 134  135          SVP_CF_REAP             = 0x04,
 135  136          SVP_CF_TEARDOWN         = 0x08,
 136  137          SVP_CF_UFLAG            = 0x0c,
 137  138          SVP_CF_USER             = 0x10
 138  139  } svp_conn_flags_t;
↓ open down ↓ 20 lines elided ↑ open up ↑
 159  160          int                     sc_socket;
 160  161          uint_t                  sc_gen;
 161  162          uint_t                  sc_nbackoff;
 162  163          svp_conn_flags_t        sc_flags;
 163  164          svp_conn_state_t        sc_cstate;
 164  165          svp_conn_error_t        sc_error;
 165  166          int                     sc_errno;
 166  167          list_t                  sc_queries;
 167  168          svp_conn_out_t          sc_output;
 168  169          svp_conn_in_t           sc_input;
      170 +        uint_t                  sc_version;
 169  171  };
 170  172  
 171  173  typedef enum svp_remote_state {
 172  174          SVP_RS_LOOKUP_SCHEDULED         = 0x01, /* On the DNS Queue */
 173  175          SVP_RS_LOOKUP_INPROGRESS        = 0x02, /* Doing a DNS lookup */
 174  176          SVP_RS_LOOKUP_VALID             = 0x04  /* addrinfo valid */
 175  177  } svp_remote_state_t;
 176  178  
 177  179  /*
 178  180   * These series of bit-based flags should be ordered such that the most severe
↓ open down ↓ 192 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX