2015-12-30 11:07:16 -05:00
|
|
|
(* Copyright (C) 2015, Thomas Leonard <thomas.leonard@unikernel.com>
|
|
|
|
See the README file for details. *)
|
|
|
|
|
2017-03-02 09:52:55 -05:00
|
|
|
open Fw_utils
|
2015-12-30 11:07:16 -05:00
|
|
|
|
|
|
|
type port = int
|
|
|
|
|
|
|
|
type ports = {
|
|
|
|
sport : port; (* Source port *)
|
|
|
|
dport : port; (* Destination *)
|
|
|
|
}
|
|
|
|
|
|
|
|
type host =
|
2016-09-25 09:38:17 -04:00
|
|
|
[ `Client of client_link | `Client_gateway | `Firewall_uplink | `NetVM | `External of Ipaddr.t ]
|
2015-12-30 11:07:16 -05:00
|
|
|
|
|
|
|
type info = {
|
2017-03-05 11:31:04 -05:00
|
|
|
packet : Nat_packet.t;
|
2015-12-30 11:07:16 -05:00
|
|
|
src : host;
|
|
|
|
dst : host;
|
|
|
|
proto : [ `UDP of ports | `TCP of ports | `ICMP | `Unknown ];
|
|
|
|
}
|