package tcpip

  1. Overview
  2. Docs
type msg = [
  1. | `Broadcast
  2. | `Client_id
  3. | `DNS_server
  4. | `Domain_name
  5. | `End
  6. | `Host_name
  7. | `Interface_mtu
  8. | `Lease_time
  9. | `Max_size
  10. | `Message
  11. | `Message_type
  12. | `Name_server
  13. | `Netbios_name_server
  14. | `Pad
  15. | `Parameter_request
  16. | `Requested_ip
  17. | `Router
  18. | `Server_identifier
  19. | `Subnet_mask
  20. | `Time_offset
  21. | `Time_server
  22. | `Unknown of char
]
type op = [
  1. | `Ack
  2. | `Decline
  3. | `Discover
  4. | `Inform
  5. | `Nak
  6. | `Offer
  7. | `Release
  8. | `Request
  9. | `Unknown of char
]
type t = [
  1. | `Broadcast of Ipaddr.V4.t
  2. | `Client_id of string
  3. | `DNS_server of Ipaddr.V4.t list
  4. | `Domain_name of string
  5. | `End
  6. | `Host_name of string
  7. | `Interface_mtu of int
  8. | `Lease_time of int32
  9. | `Max_size of int
  10. | `Message of string
  11. | `Message_type of op
  12. | `Name_server of Ipaddr.V4.t list
  13. | `Netbios_name_server of Ipaddr.V4.t list
  14. | `Pad
  15. | `Parameter_request of msg list
  16. | `Requested_ip of Ipaddr.V4.t
  17. | `Router of Ipaddr.V4.t list
  18. | `Server_identifier of Ipaddr.V4.t
  19. | `Subnet_mask of Ipaddr.V4.t
  20. | `Time_offset of string
  21. | `Time_server of Ipaddr.V4.t list
  22. | `Unknown of char * string
]
val msg_to_string : msg -> string
val op_to_string : op -> string
val t_to_string : t -> string
val ipv4_addr_of_bytes : string -> Ipaddr.V4.t
module Marshal : sig ... end
module Unmarshal : sig ... end
module Packet : sig ... end
OCaml

Innovation. Community. Security.