package tcpip
OCaml TCP/IP networking stack, used in MirageOS
Install
Dune Dependency
Authors
Maintainers
Sources
tcpip-9.0.0.tbz
sha256=59377ed359080d8da94aec91474a533bad955c12be79827bec853ccb496d659a
sha512=3f2ed5cbd5bdcd9a664e9ee0b7dbfc65b0a698e6c4bb77ee6a85a139b18cdee24415d76fb821466a9aff2e390318a8657b83871768c259557f25684ab6ccf83b
doc/src/tcpip.ipv4/ipv4_wire.ml.html
Source file ipv4_wire.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
let sizeof_ipv4 = 20 let hlen_version_off = 0 let _tos_off = 1 let len_off = 2 let id_off = 4 let off_off = 6 let ttl_off = 8 let proto_off = 9 let csum_off = 10 let src_off = 12 let dst_off = 16 let get_hlen_version buf = Cstruct.get_uint8 buf hlen_version_off let set_hlen_version buf v = Cstruct.set_uint8 buf hlen_version_off v let get_len buf = Cstruct.BE.get_uint16 buf len_off let set_len buf v = Cstruct.BE.set_uint16 buf len_off v let get_id buf = Cstruct.BE.get_uint16 buf id_off let set_id buf v = Cstruct.BE.set_uint16 buf id_off v let get_off buf = Cstruct.BE.get_uint16 buf off_off let set_off buf v = Cstruct.BE.set_uint16 buf off_off v let get_ttl buf = Cstruct.get_uint8 buf ttl_off let set_ttl buf v = Cstruct.set_uint8 buf ttl_off v let get_proto buf = Cstruct.get_uint8 buf proto_off let set_proto buf v = Cstruct.set_uint8 buf proto_off v let get_checksum buf = Cstruct.BE.get_uint16 buf csum_off let set_checksum buf value = Cstruct.BE.set_uint16 buf csum_off value let get_src buf = Ipaddr.V4.of_int32 (Cstruct.BE.get_uint32 buf src_off) let set_src buf v = Cstruct.BE.set_uint32 buf src_off (Ipaddr.V4.to_int32 v) let get_dst buf = Ipaddr.V4.of_int32 (Cstruct.BE.get_uint32 buf dst_off) let set_dst buf v = Cstruct.BE.set_uint32 buf dst_off (Ipaddr.V4.to_int32 v)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>