package mirage-nat
Mirage-nat is a library for network address translation to be used with MirageOS
Install
Dune Dependency
Authors
Maintainers
Sources
mirage-nat-3.0.2.tbz
sha256=675837a9bdbac7f4ba6ac62feaba135bbeebe35487cbb38637b328649fc4f08b
sha512=dc951a1ad3b832c60d9dfdece8d42cd8b19d62d8f412eb58e21384d68100cfa993b5542af451e6d18619c0e9a38d0677f4d346382d7881edf35dc3816faf9945
doc/mirage-nat/Nat_packet/index.html
Module Nat_packet
Source
Source
type t = [
| `IPv4 of Ipv4_packet.t * [ `TCP of Tcp.Tcp_packet.t * Cstruct.t | `UDP of Udp_packet.t * Cstruct.t | `ICMP of Icmpv4_packet.t * Cstruct.t ]
]
Source
val of_ethernet_frame :
Fragments.Cache.t ->
now:int64 ->
Cstruct.t ->
Fragments.Cache.t * (t option, error) result
Source
val of_ipv4_packet :
Fragments.Cache.t ->
now:int64 ->
Cstruct.t ->
Fragments.Cache.t * (t option, error) result
to_cstruct packet
is the list of cstructs representing packet
. It returns a list of fragments to be sent, or an error if fragmentation was needed, but disallowed by the provided ip header.
into_cstruct packet buf
attempts to serialize packet
into buf
. On success, it will return the number of bytes written and a list of further fragments to be written.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>