mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2024-12-29 00:56:13 -05:00
18 lines
466 B
OCaml
18 lines
466 B
OCaml
(* Copyright (C) 2015, Thomas Leonard <thomas.leonard@unikernel.com>
|
|
See the README file for details. *)
|
|
|
|
(** The link from us to NetVM (and, through that, to the outside world). *)
|
|
|
|
open Fw_utils
|
|
|
|
type t
|
|
|
|
val connect : Dao.network_config -> t Lwt.t
|
|
(** Connect to our NetVM (gateway). *)
|
|
|
|
val interface : t -> interface
|
|
(** The network interface to NetVM. *)
|
|
|
|
val listen : t -> (unit -> int64) -> Router.t -> unit Lwt.t
|
|
(** Handle incoming frames from NetVM. *)
|