package tcpip
OCaml TCP/IP networking stack, used in MirageOS
Install
Dune Dependency
Authors
Maintainers
Sources
tcpip-v6.4.0.tbz
sha256=6e32bf540d291e9b7325cb3dd00df2f695533e009c46ea534d5518b9492c7348
sha512=2e9f9ca2eeac637599eb48e087b4632598539f1c76f9251758995c7eedeb723f8b951d557a2a53b85a58d50a04e68e15598581f88fca8997733e800fcfca422b
doc/tcpip.icmpv4-socket/Icmpv4_socket/index.html
Module Icmpv4_socket
Source
include Mirage_protocols.ICMP with type ipaddr = Ipaddr.V4.t
The type representing the internal state of the ICMP layer.
Disconnect from the ICMP layer. While this might take some time to complete, it can never result in an error.
The type for IP addresses.
The type for ICMP errors.
input t src dst buffer
reacts to the ICMP message in buffer
.
listen t addr fn
attempts to create an unprivileged listener on IP address addr
.
When a packet is received, the callback fn
will be called in a fresh background thread. The callback will be provided a buffer containing an IP datagram with an ICMP payload inside.
The thread returned by listen
blocks until the stack is disconnected.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>