package tcpip

  1. Overview
  2. Docs
val sizeof_ethernet : int
val get_ethernet_dst : Cstruct.t -> Cstruct.t
val copy_ethernet_dst : Cstruct.t -> string
val set_ethernet_dst : string -> int -> Cstruct.t -> unit
val blit_ethernet_dst : Cstruct.t -> int -> Cstruct.t -> unit
val get_ethernet_src : Cstruct.t -> Cstruct.t
val copy_ethernet_src : Cstruct.t -> string
val set_ethernet_src : string -> int -> Cstruct.t -> unit
val blit_ethernet_src : Cstruct.t -> int -> Cstruct.t -> unit
val get_ethernet_ethertype : Cstruct.t -> Cstruct.uint16
val set_ethernet_ethertype : Cstruct.t -> Cstruct.uint16 -> unit
val hexdump_ethernet_to_buffer : Buffer.t -> Cstruct.t -> unit
val hexdump_ethernet : Cstruct.t -> unit
type ethertype =
  1. | ARP
  2. | IPv4
  3. | IPv6
val int_to_ethertype : int -> ethertype option
val ethertype_to_int : ethertype -> int
val ethertype_to_string : ethertype -> string
val string_to_ethertype : string -> ethertype option
val parse_ethernet_frame : Cstruct.t -> (ethertype option * Macaddr.t * Cstruct.t) option
val sizeof_udp : int
val get_udp_source_port : Cstruct.t -> Cstruct.uint16
val set_udp_source_port : Cstruct.t -> Cstruct.uint16 -> unit
val get_udp_dest_port : Cstruct.t -> Cstruct.uint16
val set_udp_dest_port : Cstruct.t -> Cstruct.uint16 -> unit
val get_udp_length : Cstruct.t -> Cstruct.uint16
val set_udp_length : Cstruct.t -> Cstruct.uint16 -> unit
val get_udp_checksum : Cstruct.t -> Cstruct.uint16
val set_udp_checksum : Cstruct.t -> Cstruct.uint16 -> unit
val hexdump_udp_to_buffer : Buffer.t -> Cstruct.t -> unit
val hexdump_udp : Cstruct.t -> unit
module Ipv4_wire : sig ... end
module Tcp_wire : sig ... end
module Ipv6_wire : sig ... end
OCaml

Innovation. Community. Security.