bump wire version

This commit is contained in:
Hannes Mehnert 2019-10-12 01:38:44 +02:00
parent c9820f3106
commit 13edb22db3
13 changed files with 16 additions and 12 deletions

View File

@ -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 *)

View File

@ -2,7 +2,7 @@
open Lwt.Infix
let version = `AV3
let version = `AV4
let socket t = function
| Some x -> x

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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) ->

View File

@ -6,7 +6,7 @@ open Vmm_core
open Lwt.Infix
let version = `AV3
let version = `AV4
let state = ref (Vmm_vmmd.init version)

View File

@ -5,7 +5,7 @@ open Vmm_asn
open Rresult.R.Infix
let version = `AV3
let version = `AV4
let csr priv name cmd =
let ext =

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 []

View File

@ -2,7 +2,7 @@
open Lwt.Infix
let my_version = `AV3
let my_version = `AV4
let command = ref 0L