package mnet
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
An implementation of TCP (Transmission Control Protocol) in OCaml for Miou & Solo5
Install
dune-project
Dependency
Authors
Maintainers
Sources
mnet-0.0.4.tbz
sha256=154c3b18bbb019535a4f37d1fefa3c6131b636e53316a63b395d030b186f2a59
sha512=894d12ff3140b294de1129f76893b295e73093101edec137ba2b2106059081f94385e3e3420c48cde14df6aefbef333bec12f5772c1b85c7ecc73dcde9e5bb8c
doc/mnet.ipv4/IPv4/Packet/index.html
Module IPv4.PacketSource
A fully decoded packet header with verified checksum and total length.
Decoding errors.
`Invalid_IPv4_packet: the buffer is too short or contains invalid header fields.`Invalid_checksum: the IPv4 header checksum does not match.
Source
type 'a packet = {src : Ipaddr.V4.t;dst : Ipaddr.V4.t;uid : int;flags : Flag.t list;off : int;ttl : int;protocol : int;checksum_and_length : 'a;opt : Slice_bstr.t;
}An IPv4 packet header parameterized by its checksum state ('a is either partial or complete).
uid: the IP identification field, used for fragment reassembly.off: the fragment offset (in 8-byte units).ttl: Time-To-Live.protocol: the upper-layer protocol number (6 = TCP, 17 = UDP, 1 = ICMP).opt: IP options (usually empty).
decode slice decodes an IPv4 packet header from slice and returns the header along with a sub-slice pointing to the payload.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>