sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
The package failed to build. The error log from opam follows.
[NOTE] Package dune is already installed (current version is 3.17.2). [NOTE] Package ocamlfind is already installed (current version is 1.9.8). The following actions will be performed: === install 50 packages - install arp 2.3.2 - install base v0.15.1 - install base-bytes base - install bigarray-compat 1.1.0 - install cppo 1.8.0 - install csexp 1.5.2 - install cstruct 6.0.1 - install cstruct-lwt 6.0.1 - install domain-name 0.4.0 - install dune-configurator 3.17.2 - install duration 0.2.1 - install ethernet 2.2.1 - install fmt 0.9.0 - install ipaddr 5.6.0 - install logs 0.7.0 - install lru 0.3.1 - install lwt 4.5.0 - install lwt-dllist 1.0.1 - install macaddr 5.6.0 - install macaddr-cstruct 5.6.0 - install mirage-clock 4.2.0 - install mirage-device 2.0.0 (deprecated) - install mirage-flow 4.0.2 - install mirage-nat 2.0.0 - install mirage-net 4.0.0 - install mirage-profile 0.9.1 (deprecated) - install mirage-protocols 4.0.1 (deprecated) - install mirage-random 3.0.0 (deprecated) - install mirage-stack 3.0.0 (deprecated) - install mirage-time 3.0.0 - install mmap 1.2.0 - install num 1.5-1 - install ocaml-compiler-libs v0.12.4 - install ocamlbuild 0.15.0 - install ocplib-endian 1.2 - install parsexp v0.15.0 - install ppx_cstruct 6.0.1 - install ppx_derivers 1.2.1 - install ppx_deriving 6.0.3 - install ppxlib 0.35.0 - install psq 0.2.1 - install randomconv 0.1.3 - install result 1.5 - install rresult 0.7.0 - install seq base - install sexplib v0.15.1 - install sexplib0 v0.15.1 - install stdlib-shims 0.3.0 - install tcpip 4.0.0 - install topkg 1.0.7 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> installed base-bytes.base -> retrieved arp.2.3.2 (cached) -> retrieved bigarray-compat.1.1.0 (cached) -> retrieved base.v0.15.1 (cached) -> retrieved cppo.1.8.0 (cached) -> retrieved csexp.1.5.2 (cached) -> retrieved cstruct.6.0.1, cstruct-lwt.6.0.1, ppx_cstruct.6.0.1 (cached) -> retrieved domain-name.0.4.0 (cached) -> retrieved duration.0.2.1 (cached) -> retrieved ethernet.2.2.1 (cached) -> retrieved fmt.0.9.0 (cached) -> retrieved ipaddr.5.6.0, macaddr.5.6.0, macaddr-cstruct.5.6.0 (cached) -> retrieved logs.0.7.0 (cached) -> retrieved lru.0.3.1 (cached) -> retrieved lwt-dllist.1.0.1 (cached) -> retrieved mirage-clock.4.2.0 (cached) -> installed bigarray-compat.1.1.0 -> retrieved lwt.4.5.0 (cached) -> retrieved mirage-device.2.0.0 (cached) -> retrieved mirage-flow.4.0.2 (cached) -> installed csexp.1.5.2 -> installed duration.0.2.1 -> retrieved mirage-nat.2.0.0 (cached) -> retrieved mirage-net.4.0.0 (cached) -> installed lwt-dllist.1.0.1 -> installed mirage-clock.4.2.0 -> installed domain-name.0.4.0 -> installed macaddr.5.6.0 -> retrieved mirage-profile.0.9.1 (cached) -> retrieved mirage-protocols.4.0.1 (cached) -> retrieved mirage-random.3.0.0 (cached) -> retrieved mirage-stack.3.0.0 (cached) -> retrieved mirage-time.3.0.0 (cached) -> retrieved mmap.1.2.0 (cached) -> retrieved num.1.5-1 (cached) -> retrieved ocaml-compiler-libs.v0.12.4 (cached) -> retrieved ocamlbuild.0.15.0 (cached) -> retrieved ocplib-endian.1.2 (cached) -> retrieved parsexp.v0.15.0 (cached) -> installed cstruct.6.0.1 -> retrieved ppx_derivers.1.2.1 (cached) -> retrieved ppx_deriving.6.0.3 (cached) -> retrieved dune-configurator.3.17.2 (cached) -> installed cppo.1.8.0 -> installed ipaddr.5.6.0 -> installed mmap.1.2.0 -> installed ocaml-compiler-libs.v0.12.4 -> installed num.1.5-1 -> installed macaddr-cstruct.5.6.0 -> installed mirage-random.3.0.0 -> retrieved ppxlib.0.35.0 (cached) -> installed ppx_derivers.1.2.1 -> retrieved psq.0.2.1 (cached) -> retrieved randomconv.0.1.3 (cached) -> retrieved seq.base (cached) -> installed seq.base -> retrieved result.1.5 (cached) -> retrieved rresult.0.7.0 (cached) -> retrieved sexplib.v0.15.1 (cached) -> retrieved sexplib0.v0.15.1 (cached) -> retrieved stdlib-shims.0.3.0 (cached) -> retrieved tcpip.4.0.0 (cached) -> retrieved topkg.1.0.7 (cached) -> installed randomconv.0.1.3 -> installed ocplib-endian.1.2 -> installed result.1.5 -> installed psq.0.2.1 -> installed stdlib-shims.0.3.0 -> installed sexplib0.v0.15.1 -> installed lru.0.3.1 -> installed dune-configurator.3.17.2 -> installed ocamlbuild.0.15.0 -> installed lwt.4.5.0 -> installed mirage-time.3.0.0 -> installed cstruct-lwt.6.0.1 -> installed base.v0.15.1 -> installed parsexp.v0.15.0 -> installed topkg.1.0.7 -> installed sexplib.v0.15.1 -> installed rresult.0.7.0 -> installed fmt.0.9.0 -> installed mirage-device.2.0.0 -> installed mirage-flow.4.0.2 -> installed mirage-net.4.0.0 -> installed mirage-protocols.4.0.1 -> installed mirage-stack.3.0.0 -> installed logs.0.7.0 -> installed ppxlib.0.35.0 -> installed ppx_cstruct.6.0.1 -> installed ppx_deriving.6.0.3 -> installed mirage-profile.0.9.1 -> installed arp.2.3.2 -> installed ethernet.2.2.1 [ERROR] The compilation of tcpip.4.0.0 failed at "env OPAM_PKG_CONFIG_PATH=/home/opam/.opam/4.11/lib/pkgconfig dune build -p tcpip -j 39". #=== ERROR while compiling tcpip.4.0.0 ========================================# # context 2.3.0 | linux/x86_64 | ocaml-base-compiler.4.11.2 | file:///src # path ~/.opam/4.11/.opam-switch/build/tcpip.4.0.0 # command /usr/bin/env OPAM_PKG_CONFIG_PATH=/home/opam/.opam/4.11/lib/pkgconfig dune build -p tcpip -j 39 # exit-code 1 # env-file ~/.opam/log/tcpip-113-8950b2.env # output-file ~/.opam/log/tcpip-113-8950b2.out ### output ### # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/stack-unix/.udpv4_socket.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/cstruct-lwt -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/ipaddr/unix -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt/unix -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mmap -I /home/opam/.opam/4.11/lib/ocaml/threads -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/seq -no-alias-deps -o src/stack-unix/.udpv4_socket.objs/byte/udpv4_socket.cmo -c -impl src/stack-unix/udpv4_socket.ml) # File "src/stack-unix/udpv4_socket.ml", line 72, characters 17-28: # 72 | | n when n = Cstruct.len buf -> Lwt.return @@ Ok () # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/udpv4_socket.ml", line 74, characters 46-57: # 74 | | n -> write_to_fd fd (Cstruct.sub buf n (Cstruct.len buf - n)) (* keep trying *) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/stack-unix/.tcpv4_socket.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/cstruct-lwt -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/ipaddr/unix -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt/unix -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mmap -I /home/opam/.opam/4.11/lib/ocaml/threads -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/seq -I src/stack-unix/.tcp_socket_options.objs/byte -no-alias-deps -o src/stack-unix/.tcpv4_socket.objs/byte/tcp_socket.cmo -c -impl src/stack-unix/tcp_socket.ml) # File "src/stack-unix/tcp_socket.ml", line 34, characters 19-30: # 34 | | n when n = Cstruct.len buf -> return @@ Ok () # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/tcp_socket.ml", line 36, characters 42-53: # 36 | | n -> write fd (Cstruct.sub buf n (Cstruct.len buf - n)) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/stack-unix/.udpv4_socket.objs/byte -I src/stack-unix/.udpv4_socket.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/cstruct-lwt -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/ipaddr/unix -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt/unix -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mmap -I /home/opam/.opam/4.11/lib/ocaml/threads -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/seq -intf-suffix .ml -no-alias-deps -o src/stack-unix/.udpv4_socket.objs/native/udpv4_socket.cmx -c -impl src/stack-unix/udpv4_socket.ml) # File "src/stack-unix/udpv4_socket.ml", line 72, characters 17-28: # 72 | | n when n = Cstruct.len buf -> Lwt.return @@ Ok () # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/udpv4_socket.ml", line 74, characters 46-57: # 74 | | n -> write_to_fd fd (Cstruct.sub buf n (Cstruct.len buf - n)) (* keep trying *) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/stack-unix/.tcpv4_socket.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/cstruct-lwt -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/ipaddr/unix -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt/unix -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mmap -I /home/opam/.opam/4.11/lib/ocaml/threads -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/seq -I src/stack-unix/.tcp_socket_options.objs/byte -intf-suffix .ml -no-alias-deps -o src/stack-unix/.tcpv4_socket.objs/byte/tcpv4_socket.cmo -c -impl src/stack-unix/tcpv4_socket.ml) # File "src/stack-unix/tcpv4_socket.ml", line 1: # Error: The implementation src/stack-unix/tcpv4_socket.ml # does not match the interface src/stack-unix/.tcpv4_socket.objs/byte/tcpv4_socket.cmi: # The value `shutdown' is required but not provided # File "src/mirage_flow.mli", line 98, characters 2-71: # Expected declaration # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/stack-unix/.tcpv4_socket.objs/byte -I src/stack-unix/.tcpv4_socket.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/cstruct-lwt -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/ipaddr/unix -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt/unix -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mmap -I /home/opam/.opam/4.11/lib/ocaml/threads -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/seq -I src/stack-unix/.tcp_socket_options.objs/byte -I src/stack-unix/.tcp_socket_options.objs/native -intf-suffix .ml -no-alias-deps -o src/stack-unix/.tcpv4_socket.objs/native/tcp_socket.cmx -c -impl src/stack-unix/tcp_socket.ml) # File "src/stack-unix/tcp_socket.ml", line 34, characters 19-30: # 34 | | n when n = Cstruct.len buf -> return @@ Ok () # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/tcp_socket.ml", line 36, characters 42-53: # 36 | | n -> write fd (Cstruct.sub buf n (Cstruct.len buf - n)) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/stack-unix/.tcpv6_socket.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/cstruct-lwt -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/ipaddr/unix -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt/unix -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mmap -I /home/opam/.opam/4.11/lib/ocaml/threads -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/seq -I src/stack-unix/.tcp_socket_options.objs/byte -I src/stack-unix/.tcpv4_socket.objs/byte -intf-suffix .ml -no-alias-deps -o src/stack-unix/.tcpv6_socket.objs/byte/tcpv6_socket.cmo -c -impl src/stack-unix/tcpv6_socket.ml) # File "src/stack-unix/tcpv6_socket.ml", line 1: # Error: The implementation src/stack-unix/tcpv6_socket.ml # does not match the interface src/stack-unix/.tcpv6_socket.objs/byte/tcpv6_socket.cmi: # The value `shutdown' is required but not provided # File "src/mirage_flow.mli", line 98, characters 2-71: # Expected declaration # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/stack-unix/.tcpv4_socket.objs/byte -I src/stack-unix/.tcpv4_socket.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/cstruct-lwt -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/ipaddr/unix -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt/unix -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mmap -I /home/opam/.opam/4.11/lib/ocaml/threads -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/seq -I src/stack-unix/.tcp_socket_options.objs/byte -I src/stack-unix/.tcp_socket_options.objs/native -intf-suffix .ml -no-alias-deps -o src/stack-unix/.tcpv4_socket.objs/native/tcpv4_socket.cmx -c -impl src/stack-unix/tcpv4_socket.ml) # File "src/stack-unix/tcpv4_socket.ml", line 1: # Error: The implementation src/stack-unix/tcpv4_socket.ml # does not match the interface src/stack-unix/.tcpv4_socket.objs/byte/tcpv4_socket.cmi: # The value `shutdown' is required but not provided # File "src/mirage_flow.mli", line 98, characters 2-71: # Expected declaration # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/udp/.tcpip_udpv4.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -intf-suffix .ml -no-alias-deps -o src/udp/.tcpip_udpv4.objs/byte/udp_packet.cmo -c -impl src/udp/udp_packet.pp.ml) # File "src/udp/udp_packet.ml", line 21, characters 9-20: # 21 | if Cstruct.len buf < sizeof_udp then Error "UDP header too short" else Ok () # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/udp/udp_packet.ml", line 37, characters 51-62: # 37 | check_payload_length total_length_from_header (Cstruct.len buf) >>= fun payload_len -> # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/udp/udp_packet.ml", line 69, characters 9-20: # 69 | if Cstruct.len udp_buf < sizeof_udp then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/udp/udp_packet.ml", line 75, characters 14-25: # 75 | let len = Cstruct.len payload + sizeof_udp in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/udp/udp_packet.ml", line 82, characters 36-47: # 82 | let len = Udp_wire.sizeof_udp + Cstruct.len payload in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/tcp/.tcp.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt-dllist -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -intf-suffix .ml -no-alias-deps -open Tcp -o src/tcp/.tcp.objs/byte/tcp__Options.cmo -c -impl src/tcp/options.pp.ml) # File "src/tcp/options.ml", line 58, characters 17-28: # 58 | match Cstruct.len buf with # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/options.ml", line 73, characters 14-25: # 73 | if Cstruct.len buf < option_length then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/options.ml", line 102, characters 51-62: # 102 | Ok (Unknown (n, Cstruct.copy buf 2 (Cstruct.len buf - 2))) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/ipv4/.tcpip_ipv4.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lru -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/psq -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/udp/.tcpip_udpv4.objs/byte -intf-suffix .ml -no-alias-deps -o src/ipv4/.tcpip_ipv4.objs/byte/ipv4_packet.cmo -c -impl src/ipv4/ipv4_packet.pp.ml) # File "src/ipv4/ipv4_packet.ml", line 56, characters 35-46: # 56 | let options_len = nearest_4 @@ Cstruct.len t.options in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 64, characters 46-57: # 64 | Cstruct.blit t.options 0 buf sizeof_ipv4 (Cstruct.len t.options); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 71, characters 7-18: # 71 | if Cstruct.len buf < (sizeof_ipv4 + Cstruct.len t.options) then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 71, characters 40-51: # 71 | if Cstruct.len buf < (sizeof_ipv4 + Cstruct.len t.options) then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 81, characters 35-46: # 81 | let options_len = nearest_4 @@ Cstruct.len t.options in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 107, characters 10-21: # 107 | if (Cstruct.len buf < sizeof_ipv4) then Error "buffer sent to IPv4 parser had size < 20" # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 123, characters 16-27: # 123 | else if Cstruct.len buf < hlen then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 124, characters 93-104: # 124 | Error (Printf.sprintf "IPv4 packet w/length %d claimed to have header of size %d" (Cstruct.len buf) hlen) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 147, characters 30-41: # 147 | let payload_available = Cstruct.len buf - options_end in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 170, characters 32-43: # 170 | check ipv4_header ~proto (Cstruct.len transport_packet) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 175, characters 34-45: # 175 | check ipv4_header ~proto (Cstruct.len transport_packet) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/tcp/.tcp.objs/byte -I src/tcp/.tcp.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt-dllist -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -intf-suffix .ml -no-alias-deps -open Tcp -o src/tcp/.tcp.objs/native/tcp__Options.cmx -c -impl src/tcp/options.pp.ml) # File "src/tcp/options.ml", line 58, characters 17-28: # 58 | match Cstruct.len buf with # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/options.ml", line 73, characters 14-25: # 73 | if Cstruct.len buf < option_length then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/options.ml", line 102, characters 51-62: # 102 | Ok (Unknown (n, Cstruct.copy buf 2 (Cstruct.len buf - 2))) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/tcp/.tcp.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt-dllist -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -intf-suffix .ml -no-alias-deps -open Tcp -o src/tcp/.tcp.objs/byte/tcp__Wire.cmo -c -impl src/tcp/wire.pp.ml) # File "src/tcp/wire.ml", line 63, characters 64-75: # 63 | let tcp_size = Tcp_wire.sizeof_tcp + Options.lenv options + Cstruct.len payload in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/wire.ml", line 73, characters 38-49: # 73 | Cstruct.blit payload 0 buf l (Cstruct.len payload) ; # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/wire.ml", line 75, characters 11-22: # 75 | (Cstruct.len payload + if syn then 1 else 0) ; # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/udp/.tcpip_udpv4.objs/byte -I src/udp/.tcpip_udpv4.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -intf-suffix .ml -no-alias-deps -o src/udp/.tcpip_udpv4.objs/native/udp_packet.cmx -c -impl src/udp/udp_packet.pp.ml) # File "src/udp/udp_packet.ml", line 21, characters 9-20: # 21 | if Cstruct.len buf < sizeof_udp then Error "UDP header too short" else Ok () # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/udp/udp_packet.ml", line 37, characters 51-62: # 37 | check_payload_length total_length_from_header (Cstruct.len buf) >>= fun payload_len -> # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/udp/udp_packet.ml", line 69, characters 9-20: # 69 | if Cstruct.len udp_buf < sizeof_udp then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/udp/udp_packet.ml", line 75, characters 14-25: # 75 | let len = Cstruct.len payload + sizeof_udp in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/udp/udp_packet.ml", line 82, characters 36-47: # 82 | let len = Udp_wire.sizeof_udp + Cstruct.len payload in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/ipv6/.tcpip_ipv6.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/macaddr-cstruct -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -intf-suffix .ml -no-alias-deps -o src/ipv6/.tcpip_ipv6.objs/byte/ipv6.cmo -c -impl src/ipv6/ipv6.pp.ml) # File "src/ipv6/ipv6.ml", line 64, characters 23-34: # 64 | let size' = size + Cstruct.len payload in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv6/ipv6.ml", line 71, characters 40-51: # 71 | Cstruct.blit payload 0 buf h_len (Cstruct.len payload); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv6/ipv6.ml", line 72, characters 14-25: # 72 | h_len + Cstruct.len payload # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/icmp/.tcpip_icmpv4.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/udp/.tcpip_udpv4.objs/byte -intf-suffix .ml -no-alias-deps -o src/icmp/.tcpip_icmpv4.objs/byte/icmpv4_packet.cmo -c -impl src/icmp/icmpv4_packet.pp.ml) # File "src/icmp/icmpv4_packet.ml", line 63, characters 9-20: # 63 | if Cstruct.len buf < sizeof_icmpv4 then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/icmp/icmpv4_packet.ml", line 101, characters 7-18: # 101 | if Cstruct.len buf < Icmpv4_wire.sizeof_icmpv4 then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/ipv4/.tcpip_ipv4.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lru -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/psq -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/udp/.tcpip_udpv4.objs/byte -intf-suffix .ml -no-alias-deps -o src/ipv4/.tcpip_ipv4.objs/byte/fragments.cmo -c -impl src/ipv4/fragments.pp.ml) # File "src/ipv4/fragments.ml", line 92, characters 32-36: # 92 | Fmt.(list ~sep:(unit "; ") (pair ~sep:(unit ", len ") int int)) # ^^^^ # Alert deprecated: Fmt.unit # use Fmt.any instead. # File "src/ipv4/fragments.ml", line 92, characters 55-59: # 92 | Fmt.(list ~sep:(unit "; ") (pair ~sep:(unit ", len ") int int)) # ^^^^ # Alert deprecated: Fmt.unit # use Fmt.any instead. # File "src/ipv4/fragments.ml", line 93, characters 51-62: # 93 | (List.map (fun (off, data) -> off, Cstruct.len data) fragments)) ; # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 99, characters 10-21: # 99 | off + Cstruct.len data # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 104, characters 28-39: # 104 | let until' = start + (Cstruct.len d) in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 114, characters 35-46: # 114 | Cstruct.blit data 0 buf off (Cstruct.len data)) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 166, characters 88-99: # 166 | Log.debug (fun m -> m "%a reassembled to payload %d" Ipv4_packet.pp packet (Cstruct.len p)) ; # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 173, characters 41-45: # 173 | Fmt.(list ~sep:(unit "; ") (pair ~sep:(unit ", ") int int)) # ^^^^ # Alert deprecated: Fmt.unit # use Fmt.any instead. # File "src/ipv4/fragments.ml", line 173, characters 64-68: # 173 | Fmt.(list ~sep:(unit "; ") (pair ~sep:(unit ", ") int int)) # ^^^^ # Alert deprecated: Fmt.unit # use Fmt.any instead. # File "src/ipv4/fragments.ml", line 174, characters 54-65: # 174 | (List.map (fun (s, d) -> (s, Cstruct.len d)) all_frags)) ; # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 176, characters 42-46: # 176 | Fmt.(list ~sep:(unit "@.") Cstruct.hexdump_pp) # ^^^^ # Alert deprecated: Fmt.unit # use Fmt.any instead. # File "src/ipv4/fragments.ml", line 194, characters 15-26: # 194 | let more = Cstruct.len payload > data_size in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 203, characters 22-33: # 203 | let payload_len = Cstruct.len this_payload in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 219, characters 20-31: # 219 | let opt_size = (Cstruct.len hdr.Ipv4_packet.options + 3) / 4 * 4 in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/ipv4/.tcpip_ipv4.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lru -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/psq -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/udp/.tcpip_udpv4.objs/byte -intf-suffix .ml -no-alias-deps -o src/ipv4/.tcpip_ipv4.objs/byte/static_ipv4.cmo -c -impl src/ipv4/static_ipv4.pp.ml) # File "src/ipv4/static_ipv4.ml", line 126, characters 26-37: # 126 | let l = Cstruct.len p in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/static_ipv4.ml", line 145, characters 18-29: # 145 | end else if Cstruct.len payload = 0 then begin # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/tcp/.tcp.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt-dllist -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -intf-suffix .ml -no-alias-deps -open Tcp -o src/tcp/.tcp.objs/byte/tcp__Tcp_packet.cmo -c -impl src/tcp/tcp_packet.pp.ml) # File "src/tcp/tcp_packet.ml", line 40, characters 9-20: # 40 | if Cstruct.len pkt < sizeof_tcp then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/tcp_packet.ml", line 45, characters 37-48: # 45 | let long_enough data_offset = if Cstruct.len pkt < data_offset then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/tcp_packet.ml", line 109, characters 10-21: # 109 | if (Cstruct.len buf) < sizeof_tcp then Error "Not enough space for a TCP header" # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/tcp_packet.ml", line 113, characters 10-21: # 113 | if (Cstruct.len buf) < header_length then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/tcp_packet.ml", line 115, characters 18-29: # 115 | (Cstruct.len buf) header_length) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/stack-unix/.icmpv4_socket.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/cstruct-lwt -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/ipaddr/unix -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lru -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt/unix -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/macaddr-cstruct -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/mmap -I /home/opam/.opam/4.11/lib/ocaml/threads -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/psq -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/icmp/.tcpip_icmpv4.objs/byte -I src/ipv4/.tcpip_ipv4.objs/byte -I src/ipv6/.tcpip_ipv6.objs/byte -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/udp/.tcpip_udpv4.objs/byte -intf-suffix .ml -no-alias-deps -o src/stack-unix/.icmpv4_socket.objs/byte/icmpv4_socket.cmo -c -impl src/stack-unix/icmpv4_socket.ml) # File "src/stack-unix/icmpv4_socket.ml", line 35, characters 29-40: # 35 | let bytes = Bytes.make (Cstruct.len buf) '\000' in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/icmpv4_socket.ml", line 36, characters 42-53: # 36 | Cstruct.blit_to_bytes buf 0 bytes 0 (Cstruct.len buf); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/icmpv4_socket.ml", line 43, characters 28-39: # 43 | let bytes = Bytes.make (Cstruct.len buf) '\000' in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/icmpv4_socket.ml", line 60, characters 19-30: # 60 | if (sent <> (Cstruct.len buf)) then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/icmpv4_socket.ml", line 61, characters 78-89: # 61 | Log.debug (fun f -> f "short write: %d received vs %d expected" sent (Cstruct.len buf)); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/icmpv4_socket.ml", line 102, characters 56-67: # 102 | Ipv4_wire.set_ipv4_len receive_buffer (min len (Cstruct.len receive_buffer)); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/tcp/.tcp.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt-dllist -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -intf-suffix .ml -no-alias-deps -open Tcp -o src/tcp/.tcp.objs/byte/tcp__Flow.cmo -c -impl src/tcp/flow.pp.ml) # File "src/tcp/flow.ml", line 592, characters 16-27: # 592 | let len = Cstruct.len data in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/flow.ml", line 1: # Error: The implementation src/tcp/flow.pp.ml # does not match the interface src/tcp/.tcp.objs/byte/tcp__Flow.cmi: # ... # At position module Make(Ip)(Time)(Clock)(Random) : <here> # The value `shutdown' is required but not provided # File "src/mirage_flow.mli", line 98, characters 2-71: # Expected declaration # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/tcp/.tcp.objs/byte -I src/tcp/.tcp.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt-dllist -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -intf-suffix .ml -no-alias-deps -open Tcp -o src/tcp/.tcp.objs/native/tcp__Tcp_packet.cmx -c -impl src/tcp/tcp_packet.pp.ml) # File "src/tcp/tcp_packet.ml", line 40, characters 9-20: # 40 | if Cstruct.len pkt < sizeof_tcp then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/tcp_packet.ml", line 45, characters 37-48: # 45 | let long_enough data_offset = if Cstruct.len pkt < data_offset then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/tcp_packet.ml", line 109, characters 10-21: # 109 | if (Cstruct.len buf) < sizeof_tcp then Error "Not enough space for a TCP header" # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/tcp_packet.ml", line 113, characters 10-21: # 113 | if (Cstruct.len buf) < header_length then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/tcp_packet.ml", line 115, characters 18-29: # 115 | (Cstruct.len buf) header_length) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/tcp/.tcp.objs/byte -I src/tcp/.tcp.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt-dllist -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -intf-suffix .ml -no-alias-deps -open Tcp -o src/tcp/.tcp.objs/native/tcp__Wire.cmx -c -impl src/tcp/wire.pp.ml) # File "src/tcp/wire.ml", line 63, characters 64-75: # 63 | let tcp_size = Tcp_wire.sizeof_tcp + Options.lenv options + Cstruct.len payload in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/wire.ml", line 73, characters 38-49: # 73 | Cstruct.blit payload 0 buf l (Cstruct.len payload) ; # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/wire.ml", line 75, characters 11-22: # 75 | (Cstruct.len payload + if syn then 1 else 0) ; # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/icmp/.tcpip_icmpv4.objs/byte -I src/icmp/.tcpip_icmpv4.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -I src/udp/.tcpip_udpv4.objs/byte -I src/udp/.tcpip_udpv4.objs/native -intf-suffix .ml -no-alias-deps -o src/icmp/.tcpip_icmpv4.objs/native/icmpv4_packet.cmx -c -impl src/icmp/icmpv4_packet.pp.ml) # File "src/icmp/icmpv4_packet.ml", line 63, characters 9-20: # 63 | if Cstruct.len buf < sizeof_icmpv4 then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/icmp/icmpv4_packet.ml", line 101, characters 7-18: # 101 | if Cstruct.len buf < Icmpv4_wire.sizeof_icmpv4 then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/ipv6/.tcpip_ipv6.objs/byte -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/macaddr-cstruct -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/byte -intf-suffix .ml -no-alias-deps -o src/ipv6/.tcpip_ipv6.objs/byte/ndpv6.cmo -c -impl src/ipv6/ndpv6.pp.ml) # File "src/ipv6/ndpv6.ml", line 229, characters 41-52: # 229 | let size = Ipv6_wire.sizeof_pingv6 + Cstruct.len data in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv6/ndpv6.ml", line 237, characters 59-70: # 237 | Cstruct.blit data 0 icmpbuf Ipv6_wire.sizeof_pingv6 (Cstruct.len data); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv6/ndpv6.ml", line 738, characters 7-18: # 738 | if Cstruct.len opts >= Ipv6_wire.sizeof_opt then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/ipv4/.tcpip_ipv4.objs/byte -I src/ipv4/.tcpip_ipv4.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lru -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/psq -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -I src/udp/.tcpip_udpv4.objs/byte -I src/udp/.tcpip_udpv4.objs/native -intf-suffix .ml -no-alias-deps -o src/ipv4/.tcpip_ipv4.objs/native/ipv4_packet.cmx -c -impl src/ipv4/ipv4_packet.pp.ml) # File "src/ipv4/ipv4_packet.ml", line 56, characters 35-46: # 56 | let options_len = nearest_4 @@ Cstruct.len t.options in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 64, characters 46-57: # 64 | Cstruct.blit t.options 0 buf sizeof_ipv4 (Cstruct.len t.options); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 71, characters 7-18: # 71 | if Cstruct.len buf < (sizeof_ipv4 + Cstruct.len t.options) then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 71, characters 40-51: # 71 | if Cstruct.len buf < (sizeof_ipv4 + Cstruct.len t.options) then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 81, characters 35-46: # 81 | let options_len = nearest_4 @@ Cstruct.len t.options in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 107, characters 10-21: # 107 | if (Cstruct.len buf < sizeof_ipv4) then Error "buffer sent to IPv4 parser had size < 20" # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 123, characters 16-27: # 123 | else if Cstruct.len buf < hlen then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 124, characters 93-104: # 124 | Error (Printf.sprintf "IPv4 packet w/length %d claimed to have header of size %d" (Cstruct.len buf) hlen) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 147, characters 30-41: # 147 | let payload_available = Cstruct.len buf - options_end in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 170, characters 32-43: # 170 | check ipv4_header ~proto (Cstruct.len transport_packet) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/ipv4_packet.ml", line 175, characters 34-45: # 175 | check ipv4_header ~proto (Cstruct.len transport_packet) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/ipv4/.tcpip_ipv4.objs/byte -I src/ipv4/.tcpip_ipv4.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lru -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/psq -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -I src/udp/.tcpip_udpv4.objs/byte -I src/udp/.tcpip_udpv4.objs/native -intf-suffix .ml -no-alias-deps -o src/ipv4/.tcpip_ipv4.objs/native/fragments.cmx -c -impl src/ipv4/fragments.pp.ml) # File "src/ipv4/fragments.ml", line 92, characters 32-36: # 92 | Fmt.(list ~sep:(unit "; ") (pair ~sep:(unit ", len ") int int)) # ^^^^ # Alert deprecated: Fmt.unit # use Fmt.any instead. # File "src/ipv4/fragments.ml", line 92, characters 55-59: # 92 | Fmt.(list ~sep:(unit "; ") (pair ~sep:(unit ", len ") int int)) # ^^^^ # Alert deprecated: Fmt.unit # use Fmt.any instead. # File "src/ipv4/fragments.ml", line 93, characters 51-62: # 93 | (List.map (fun (off, data) -> off, Cstruct.len data) fragments)) ; # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 99, characters 10-21: # 99 | off + Cstruct.len data # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 104, characters 28-39: # 104 | let until' = start + (Cstruct.len d) in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 114, characters 35-46: # 114 | Cstruct.blit data 0 buf off (Cstruct.len data)) # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 166, characters 88-99: # 166 | Log.debug (fun m -> m "%a reassembled to payload %d" Ipv4_packet.pp packet (Cstruct.len p)) ; # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 173, characters 41-45: # 173 | Fmt.(list ~sep:(unit "; ") (pair ~sep:(unit ", ") int int)) # ^^^^ # Alert deprecated: Fmt.unit # use Fmt.any instead. # File "src/ipv4/fragments.ml", line 173, characters 64-68: # 173 | Fmt.(list ~sep:(unit "; ") (pair ~sep:(unit ", ") int int)) # ^^^^ # Alert deprecated: Fmt.unit # use Fmt.any instead. # File "src/ipv4/fragments.ml", line 174, characters 54-65: # 174 | (List.map (fun (s, d) -> (s, Cstruct.len d)) all_frags)) ; # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 176, characters 42-46: # 176 | Fmt.(list ~sep:(unit "@.") Cstruct.hexdump_pp) # ^^^^ # Alert deprecated: Fmt.unit # use Fmt.any instead. # File "src/ipv4/fragments.ml", line 194, characters 15-26: # 194 | let more = Cstruct.len payload > data_size in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 203, characters 22-33: # 203 | let payload_len = Cstruct.len this_payload in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/fragments.ml", line 219, characters 20-31: # 219 | let opt_size = (Cstruct.len hdr.Ipv4_packet.options + 3) / 4 * 4 in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/ipv4/.tcpip_ipv4.objs/byte -I src/ipv4/.tcpip_ipv4.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lru -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/psq -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -I src/udp/.tcpip_udpv4.objs/byte -I src/udp/.tcpip_udpv4.objs/native -intf-suffix .ml -no-alias-deps -o src/ipv4/.tcpip_ipv4.objs/native/static_ipv4.cmx -c -impl src/ipv4/static_ipv4.pp.ml) # File "src/ipv4/static_ipv4.ml", line 126, characters 26-37: # 126 | let l = Cstruct.len p in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv4/static_ipv4.ml", line 145, characters 18-29: # 145 | end else if Cstruct.len payload = 0 then begin # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/tcp/.tcp.objs/byte -I src/tcp/.tcp.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt-dllist -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -intf-suffix .ml -no-alias-deps -open Tcp -o src/tcp/.tcp.objs/native/tcp__Flow.cmx -c -impl src/tcp/flow.pp.ml) # File "src/tcp/flow.ml", line 592, characters 16-27: # 592 | let len = Cstruct.len data in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/tcp/flow.ml", line 1: # Error: The implementation src/tcp/flow.pp.ml # does not match the interface src/tcp/.tcp.objs/byte/tcp__Flow.cmi: # ... # At position module Make(Ip)(Time)(Clock)(Random) : <here> # The value `shutdown' is required but not provided # File "src/mirage_flow.mli", line 98, characters 2-71: # Expected declaration # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/ipv6/.tcpip_ipv6.objs/byte -I src/ipv6/.tcpip_ipv6.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/macaddr-cstruct -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -intf-suffix .ml -no-alias-deps -o src/ipv6/.tcpip_ipv6.objs/native/ndpv6.cmx -c -impl src/ipv6/ndpv6.pp.ml) # File "src/ipv6/ndpv6.ml", line 229, characters 41-52: # 229 | let size = Ipv6_wire.sizeof_pingv6 + Cstruct.len data in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv6/ndpv6.ml", line 237, characters 59-70: # 237 | Cstruct.blit data 0 icmpbuf Ipv6_wire.sizeof_pingv6 (Cstruct.len data); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv6/ndpv6.ml", line 738, characters 7-18: # 738 | if Cstruct.len opts >= Ipv6_wire.sizeof_opt then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/ipv6/.tcpip_ipv6.objs/byte -I src/ipv6/.tcpip_ipv6.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/macaddr-cstruct -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -intf-suffix .ml -no-alias-deps -o src/ipv6/.tcpip_ipv6.objs/native/ipv6.cmx -c -impl src/ipv6/ipv6.pp.ml) # File "src/ipv6/ipv6.ml", line 64, characters 23-34: # 64 | let size' = size + Cstruct.len payload in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv6/ipv6.ml", line 71, characters 40-51: # 71 | Cstruct.blit payload 0 buf h_len (Cstruct.len payload); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/ipv6/ipv6.ml", line 72, characters 14-25: # 72 | h_len + Cstruct.len payload # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/stack-unix/.icmpv4_socket.objs/byte -I src/stack-unix/.icmpv4_socket.objs/native -I /home/opam/.opam/4.11/lib/bigarray-compat -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/cstruct -I /home/opam/.opam/4.11/lib/cstruct-lwt -I /home/opam/.opam/4.11/lib/domain-name -I /home/opam/.opam/4.11/lib/duration -I /home/opam/.opam/4.11/lib/fmt -I /home/opam/.opam/4.11/lib/ipaddr -I /home/opam/.opam/4.11/lib/ipaddr/unix -I /home/opam/.opam/4.11/lib/logs -I /home/opam/.opam/4.11/lib/lru -I /home/opam/.opam/4.11/lib/lwt -I /home/opam/.opam/4.11/lib/lwt/unix -I /home/opam/.opam/4.11/lib/macaddr -I /home/opam/.opam/4.11/lib/macaddr-cstruct -I /home/opam/.opam/4.11/lib/mirage-clock -I /home/opam/.opam/4.11/lib/mirage-device -I /home/opam/.opam/4.11/lib/mirage-flow -I /home/opam/.opam/4.11/lib/mirage-profile -I /home/opam/.opam/4.11/lib/mirage-protocols -I /home/opam/.opam/4.11/lib/mirage-random -I /home/opam/.opam/4.11/lib/mirage-time -I /home/opam/.opam/4.11/lib/mmap -I /home/opam/.opam/4.11/lib/ocaml/threads -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.11/lib/psq -I /home/opam/.opam/4.11/lib/randomconv -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/rresult -I /home/opam/.opam/4.11/lib/seq -I /home/opam/.opam/4.11/lib/stdlib-shims -I src/icmp/.tcpip_icmpv4.objs/byte -I src/icmp/.tcpip_icmpv4.objs/native -I src/ipv4/.tcpip_ipv4.objs/byte -I src/ipv4/.tcpip_ipv4.objs/native -I src/ipv6/.tcpip_ipv6.objs/byte -I src/ipv6/.tcpip_ipv6.objs/native -I src/tcpip_checksum/.tcpip.objs/byte -I src/tcpip_checksum/.tcpip.objs/native -I src/tcpip_checksum/.tcpip_unix.objs/byte -I src/tcpip_checksum/.tcpip_unix.objs/native -I src/udp/.tcpip_udpv4.objs/byte -I src/udp/.tcpip_udpv4.objs/native -intf-suffix .ml -no-alias-deps -o src/stack-unix/.icmpv4_socket.objs/native/icmpv4_socket.cmx -c -impl src/stack-unix/icmpv4_socket.ml) # File "src/stack-unix/icmpv4_socket.ml", line 35, characters 29-40: # 35 | let bytes = Bytes.make (Cstruct.len buf) '\000' in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/icmpv4_socket.ml", line 36, characters 42-53: # 36 | Cstruct.blit_to_bytes buf 0 bytes 0 (Cstruct.len buf); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/icmpv4_socket.ml", line 43, characters 28-39: # 43 | let bytes = Bytes.make (Cstruct.len buf) '\000' in # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/icmpv4_socket.ml", line 60, characters 19-30: # 60 | if (sent <> (Cstruct.len buf)) then # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/icmpv4_socket.ml", line 61, characters 78-89: # 61 | Log.debug (fun f -> f "short write: %d received vs %d expected" sent (Cstruct.len buf)); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. # File "src/stack-unix/icmpv4_socket.ml", line 102, characters 56-67: # 102 | Ipv4_wire.set_ipv4_len receive_buffer (min len (Cstruct.len receive_buffer)); # ^^^^^^^^^^^ # Alert deprecated: Cstruct.len # len is deprecated, you should use length instead. <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> +- The following actions failed | - build tcpip 4.0.0 +- +- The following changes have been performed (the rest was aborted) | - install arp 2.3.2 | - install base v0.15.1 | - install base-bytes base | - install bigarray-compat 1.1.0 | - install cppo 1.8.0 | - install csexp 1.5.2 | - install cstruct 6.0.1 | - install cstruct-lwt 6.0.1 | - install domain-name 0.4.0 | - install dune-configurator 3.17.2 | - install duration 0.2.1 | - install ethernet 2.2.1 | - install fmt 0.9.0 | - install ipaddr 5.6.0 | - install logs 0.7.0 | - install lru 0.3.1 | - install lwt 4.5.0 | - install lwt-dllist 1.0.1 | - install macaddr 5.6.0 | - install macaddr-cstruct 5.6.0 | - install mirage-clock 4.2.0 | - install mirage-device 2.0.0 | - install mirage-flow 4.0.2 | - install mirage-net 4.0.0 | - install mirage-profile 0.9.1 | - install mirage-protocols 4.0.1 | - install mirage-random 3.0.0 | - install mirage-stack 3.0.0 | - install mirage-time 3.0.0 | - install mmap 1.2.0 | - install num 1.5-1 | - install ocaml-compiler-libs v0.12.4 | - install ocamlbuild 0.15.0 | - install ocplib-endian 1.2 | - install parsexp v0.15.0 | - install ppx_cstruct 6.0.1 | - install ppx_derivers 1.2.1 | - install ppx_deriving 6.0.3 | - install ppxlib 0.35.0 | - install psq 0.2.1 | - install randomconv 0.1.3 | - install result 1.5 | - install rresult 0.7.0 | - install seq base | - install sexplib v0.15.1 | - install sexplib0 v0.15.1 | - install stdlib-shims 0.3.0 | - install topkg 1.0.7 +- <><> mirage-stack.3.0.0 installed successfully ><><><><><><><><><><><><><><><><> => Note: This package is deprecated. => mirage-stack is deprecated <><> mirage-random.3.0.0 installed successfully <><><><><><><><><><><><><><><><> => Note: This package is deprecated. => mirage-random is deprecated <><> mirage-protocols.4.0.1 installed successfully ><><><><><><><><><><><><><><> => Note: This package is deprecated. => mirage-protocols is deprecated <><> mirage-profile.0.9.1 installed successfully ><><><><><><><><><><><><><><><> => Note: This package is deprecated. => mirage-profile is deprecated <><> mirage-device.2.0.0 installed successfully <><><><><><><><><><><><><><><><> => Note: This package is deprecated. => mirage-device is deprecated <><> lwt.4.5.0 installed successfully <><><><><><><><><><><><><><><><><><><><><> => Lwt 5.0.0 will make some breaking changes in December 2019. See https://github.com/ocsigen/lwt/issues/584 # To update the current shell environment, run: eval $(opam env) The former state can be restored with: /usr/bin/opam switch import "/home/opam/.opam/4.11/.opam-switch/backup/state-20250206023952.export"