2015-12-30 04:52:24 -05:00
|
|
|
(* Copyright (C) 2015, Thomas Leonard <thomas.leonard@unikernel.com>
|
|
|
|
See the README file for details. *)
|
|
|
|
|
2015-12-30 08:48:13 -05:00
|
|
|
(** Handling client VMs. *)
|
2015-12-30 04:52:24 -05:00
|
|
|
|
2020-04-29 10:06:48 -04:00
|
|
|
val listen : (unit -> int64) ->
|
|
|
|
([ `host ] Domain_name.t -> (int32 * Dns.Rr_map.Ipv4_set.t, [> `Msg of string ]) result Lwt.t) ->
|
|
|
|
Qubes.DB.t -> Router.t -> 'a Lwt.t
|
|
|
|
(** [listen get_timestamp resolver db router] is a thread that watches for clients being added to and
|
2020-04-29 09:58:01 -04:00
|
|
|
removed from XenStore. Clients are connected to the client network and
|
|
|
|
packets are sent via [router]. We ensure the source IP address is correct
|
|
|
|
before routing a packet. *)
|