package tcpip

  1. Overview
  2. Docs
val sizeof_tcp : int
val get_tcp_src_port : Cstruct.t -> Cstruct.uint16
val set_tcp_src_port : Cstruct.t -> Cstruct.uint16 -> unit
val get_tcp_dst_port : Cstruct.t -> Cstruct.uint16
val set_tcp_dst_port : Cstruct.t -> Cstruct.uint16 -> unit
val get_tcp_sequence : Cstruct.t -> Cstruct.uint32
val set_tcp_sequence : Cstruct.t -> Cstruct.uint32 -> unit
val get_tcp_ack_number : Cstruct.t -> Cstruct.uint32
val set_tcp_ack_number : Cstruct.t -> Cstruct.uint32 -> unit
val get_tcp_dataoff : Cstruct.t -> Cstruct.uint8
val set_tcp_dataoff : Cstruct.t -> Cstruct.uint8 -> unit
val get_tcp_flags : Cstruct.t -> Cstruct.uint8
val set_tcp_flags : Cstruct.t -> Cstruct.uint8 -> unit
val get_tcp_window : Cstruct.t -> Cstruct.uint16
val set_tcp_window : Cstruct.t -> Cstruct.uint16 -> unit
val get_tcp_checksum : Cstruct.t -> Cstruct.uint16
val set_tcp_checksum : Cstruct.t -> Cstruct.uint16 -> unit
val get_tcp_urg_ptr : Cstruct.t -> Cstruct.uint16
val set_tcp_urg_ptr : Cstruct.t -> Cstruct.uint16 -> unit
val hexdump_tcp_to_buffer : Buffer.t -> Cstruct.t -> unit
val hexdump_tcp : Cstruct.t -> unit
val sizeof_tcpv4_pseudo_header : int
val get_tcpv4_pseudo_header_src : Cstruct.t -> Cstruct.uint32
val set_tcpv4_pseudo_header_src : Cstruct.t -> Cstruct.uint32 -> unit
val get_tcpv4_pseudo_header_dst : Cstruct.t -> Cstruct.uint32
val set_tcpv4_pseudo_header_dst : Cstruct.t -> Cstruct.uint32 -> unit
val get_tcpv4_pseudo_header_res : Cstruct.t -> Cstruct.uint8
val set_tcpv4_pseudo_header_res : Cstruct.t -> Cstruct.uint8 -> unit
val get_tcpv4_pseudo_header_proto : Cstruct.t -> Cstruct.uint8
val set_tcpv4_pseudo_header_proto : Cstruct.t -> Cstruct.uint8 -> unit
val get_tcpv4_pseudo_header_len : Cstruct.t -> Cstruct.uint16
val set_tcpv4_pseudo_header_len : Cstruct.t -> Cstruct.uint16 -> unit
val hexdump_tcpv4_pseudo_header_to_buffer : Buffer.t -> Cstruct.t -> unit
val hexdump_tcpv4_pseudo_header : Cstruct.t -> unit
val get_data_offset : Cstruct.t -> int
val set_data_offset : 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
OCaml

Innovation. Community. Security.