package tcpip
OCaml TCP/IP networking stack, used in MirageOS
Install
Dune Dependency
Authors
Maintainers
Sources
tcpip-8.1.0.tbz
sha256=86ba5d92f9078bddc65312f63b5f4ce34fd2570d765433b23a226ab84d75a9c0
sha512=a348a597cf4ba1e19f7fc97d6d1cb980711d09b6944efacba91d23daf419fc8cb8a83a2d263bcc7b96ff5d37ad5dbfa4a3879db9ac4c0b35528b80acb87cf8f7
doc/src/tcpip.udp/udp_wire.ml.html
Source file udp_wire.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
let sizeof_udp = 8 let src_port_offset = 0 let dst_port_offset = 2 let length_offset = 4 let checksum_offset = 6 let get_src_port buf = Cstruct.BE.get_uint16 buf src_port_offset let set_src_port buf v = Cstruct.BE.set_uint16 buf src_port_offset v let get_dst_port buf = Cstruct.BE.get_uint16 buf dst_port_offset let set_dst_port buf v = Cstruct.BE.set_uint16 buf dst_port_offset v let get_length buf = Cstruct.BE.get_uint16 buf length_offset let set_length buf v = Cstruct.BE.set_uint16 buf length_offset v let get_checksum buf = Cstruct.BE.get_uint16 buf checksum_offset let set_checksum buf value = Cstruct.BE.set_uint16 buf checksum_offset value
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>