bump wire version
This commit is contained in:
parent
c9820f3106
commit
13edb22db3
|
@ -3,7 +3,7 @@
|
|||
open Lwt.Infix
|
||||
open X509
|
||||
|
||||
let version = `AV3
|
||||
let version = `AV4
|
||||
|
||||
let read fd =
|
||||
(* now we busy read and process output *)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
open Lwt.Infix
|
||||
|
||||
let version = `AV3
|
||||
let version = `AV4
|
||||
|
||||
let socket t = function
|
||||
| Some x -> x
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
open Lwt.Infix
|
||||
|
||||
let version = `AV3
|
||||
let version = `AV4
|
||||
|
||||
let rec read_tls_write_cons t =
|
||||
Vmm_tls_lwt.read_tls t >>= function
|
||||
|
|
|
@ -14,7 +14,7 @@ open Lwt.Infix
|
|||
|
||||
open Astring
|
||||
|
||||
let my_version = `AV3
|
||||
let my_version = `AV4
|
||||
|
||||
let pp_unix_error ppf e = Fmt.string ppf (Unix.error_message e)
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ module P = struct
|
|||
vm ifd.bridge (String.concat ~sep:"," fields)
|
||||
end
|
||||
|
||||
let my_version = `AV3
|
||||
let my_version = `AV4
|
||||
|
||||
let command = ref 1L
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
open Lwt.Infix
|
||||
|
||||
let my_version = `AV3
|
||||
let my_version = `AV4
|
||||
|
||||
let broadcast prefix wire t =
|
||||
Lwt_list.fold_left_s (fun t (id, s) ->
|
||||
|
|
|
@ -6,7 +6,7 @@ open Vmm_core
|
|||
|
||||
open Lwt.Infix
|
||||
|
||||
let version = `AV3
|
||||
let version = `AV4
|
||||
|
||||
let state = ref (Vmm_vmmd.init version)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ open Vmm_asn
|
|||
|
||||
open Rresult.R.Infix
|
||||
|
||||
let version = `AV3
|
||||
let version = `AV4
|
||||
|
||||
let csr priv name cmd =
|
||||
let ext =
|
||||
|
|
|
@ -376,10 +376,12 @@ let block_cmd =
|
|||
|
||||
let version =
|
||||
let f data = match data with
|
||||
| 4 -> `AV4
|
||||
| 3 -> `AV3
|
||||
| 2 -> `AV2
|
||||
| x -> Asn.S.error (`Parse (Printf.sprintf "unknown version number 0x%X" x))
|
||||
and g = function
|
||||
| `AV4 -> 4
|
||||
| `AV3 -> 3
|
||||
| `AV2 -> 2
|
||||
in
|
||||
|
|
|
@ -3,16 +3,18 @@
|
|||
(* the wire protocol *)
|
||||
open Vmm_core
|
||||
|
||||
type version = [ `AV2 | `AV3 ]
|
||||
type version = [ `AV2 | `AV3 | `AV4 ]
|
||||
|
||||
let pp_version ppf v =
|
||||
Fmt.int ppf
|
||||
(match v with
|
||||
| `AV4 -> 4
|
||||
| `AV3 -> 3
|
||||
| `AV2 -> 2)
|
||||
|
||||
let version_eq a b =
|
||||
match a, b with
|
||||
| `AV4, `AV4 -> true
|
||||
| `AV3, `AV3 -> true
|
||||
| `AV2, `AV2 -> true
|
||||
| _ -> false
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
open Vmm_core
|
||||
|
||||
(** The type of versions of the grammar defined below. *)
|
||||
type version = [ `AV2 | `AV3 ]
|
||||
type version = [ `AV2 | `AV3 | `AV4 ]
|
||||
|
||||
(** [version_eq a b] is true if [a] and [b] are equal. *)
|
||||
val version_eq : version -> version -> bool
|
||||
|
|
|
@ -17,7 +17,7 @@ external vmmapi_close : vmctx -> unit = "vmmanage_vmmapi_close"
|
|||
external vmmapi_statnames : vmctx -> string list = "vmmanage_vmmapi_statnames"
|
||||
external vmmapi_stats : vmctx -> int64 list = "vmmanage_vmmapi_stats"
|
||||
|
||||
let my_version = `AV3
|
||||
let my_version = `AV4
|
||||
|
||||
let descr = ref []
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
open Lwt.Infix
|
||||
|
||||
let my_version = `AV3
|
||||
let my_version = `AV4
|
||||
|
||||
let command = ref 0L
|
||||
|
||||
|
|
Loading…
Reference in a new issue