package mirage-net-direct

  1. Overview
  2. Docs
val get_tcpv4_src_port : Cstruct.t -> Cstruct.uint16
val set_tcpv4_src_port : Cstruct.t -> Cstruct.uint16 -> unit
val get_tcpv4_dst_port : Cstruct.t -> Cstruct.uint16
val set_tcpv4_dst_port : Cstruct.t -> Cstruct.uint16 -> unit
val get_tcpv4_sequence : Cstruct.t -> Cstruct.uint32
val set_tcpv4_sequence : Cstruct.t -> Cstruct.uint32 -> unit
val get_tcpv4_ack_number : Cstruct.t -> Cstruct.uint32
val set_tcpv4_ack_number : Cstruct.t -> Cstruct.uint32 -> unit
val get_tcpv4_window : Cstruct.t -> Cstruct.uint16
val set_tcpv4_window : Cstruct.t -> Cstruct.uint16 -> unit
val get_tcpv4_checksum : Cstruct.t -> Cstruct.uint16
val set_tcpv4_checksum : Cstruct.t -> Cstruct.uint16 -> unit
val get_tcpv4_urg_ptr : Cstruct.t -> Cstruct.uint16
val set_tcpv4_urg_ptr : Cstruct.t -> Cstruct.uint16 -> unit
val get_data_offset : Cstruct.t -> int
val set_data_offset : Cstruct.t -> int -> unit
val sizeof_tcpv4 : int
val set_tcpv4_flags : Cstruct.t -> int -> unit
val get_fin : Cstruct.t -> bool
val get_syn : Cstruct.t -> bool
val get_rst : Cstruct.t -> bool
val get_psh : Cstruct.t -> bool
val get_ack : Cstruct.t -> bool
val get_urg : Cstruct.t -> bool
val get_ece : Cstruct.t -> bool
val get_cwr : Cstruct.t -> bool
val set_fin : Cstruct.t -> unit
val set_syn : Cstruct.t -> unit
val set_rst : Cstruct.t -> unit
val set_psh : Cstruct.t -> unit
val set_ack : Cstruct.t -> unit
val set_urg : Cstruct.t -> unit
val set_ece : Cstruct.t -> unit
val set_cwr : Cstruct.t -> unit
val get_options : Cstruct.t -> Options.t list
val set_options : Cstruct.t -> Options.ts -> int
val get_payload : Cstruct.t -> Cstruct.t
type id = {
  1. dest_port : int;
  2. dest_ip : Nettypes.ipv4_addr;
  3. local_port : int;
  4. local_ip : Nettypes.ipv4_addr;
}
val xmit : ip:Ipv4.t -> id:id -> ?rst:bool -> ?syn:bool -> ?fin:bool -> ?psh:bool -> rx_ack:Sequence.t option -> seq:Sequence.t -> window:int -> options:Options.ts -> Cstruct.t list -> unit Lwt.t
OCaml

Innovation. Community. Security.