package tcpip
OCaml TCP/IP networking stack, used in MirageOS
Install
Dune Dependency
Authors
Maintainers
Sources
tcpip-8.0.0.tbz
sha256=36b4c156be16702ba4c6d781a2da8ba1462b22370d15570e1116056cbf025233
sha512=56a1aab616349152beff7d0a504db15dc3d0010cb36322ce06b7abb43bd9d1a6ec0daa23fd6632fcc758c89737ba48046bb591d4a70021e273b80e716b55c44f
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)"
>