package mnet

  1. Overview
  2. Docs
An implementation of TCP (Transmission Control Protocol) in OCaml for Miou & Solo5

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mnet-0.0.2.tbz
sha256=92b1cfec8487423090ed7abedee824ca20db86f1a7af7e308b4118bc0f774e03
sha512=ce7685c363581121c7d8ae0c33d7dff30ee2dd9dcd29d56f451ac3261b84a91d35a2fa65b31f1f321ddc4b5984e21840459c63614e81ee814f47ac24376bf018

doc/mnet.icmpv4/ICMPv4/Packet/index.html

Module ICMPv4.PacketSource

Sourcetype 'a t = {
  1. code : int;
  2. kind : 'a kind;
  3. checksum : int;
  4. shdr : 'a;
}
Sourceand 'a kind =
  1. | Echo_reply : id_and_seq kind
  2. | Destination_unreachable : next_hop_mtu kind
  3. | Source_quench : unused kind
  4. | Redirect : Ipaddr.V4.t kind
  5. | Echo_request : id_and_seq kind
  6. | Time_exceeded : unused kind
  7. | Parameter_problem : pointer kind
  8. | Timestamp_request : id_and_seq kind
  9. | Timestamp_reply : id_and_seq kind
  10. | Information_request : id_and_seq kind
  11. | Information_reply : id_and_seq kind
Sourceand id_and_seq = int * int
Sourceand next_hop_mtu =
  1. | Hop of int
Sourceand pointer =
  1. | Pointer of int
Sourceand unused =
  1. | Unused
Sourceand pack =
  1. | Kind : 'a kind -> pack
Sourceand packet =
  1. | Packet : 'a t -> packet
Sourceval kind : pack Bin.t
Sourceval unused : unused Bin.t
Sourceval id_and_seq : (int * int) Bin.t
Sourceval next_hop_mtu : next_hop_mtu Bin.t
Sourceval pointer : pointer Bin.t
Sourceval shdr : 'a. 'a kind -> 'a Bin.t
Sourceval t : kind:'a kind -> 'a t Bin.t
Sourceval decode : ?off:??? -> string -> (packet * string, [> `Invalid_ICMPv4_packet ]) result
Sourceval to_bytes : 'a t -> bytes