package mirage-net-direct

  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 Nettypes.ipv4_addr
  2. | `Client_id of string
  3. | `DNS_server of Nettypes.ipv4_addr 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 Nettypes.ipv4_addr list
  13. | `Netbios_name_server of Nettypes.ipv4_addr list
  14. | `Pad
  15. | `Parameter_request of msg list
  16. | `Requested_ip of Nettypes.ipv4_addr
  17. | `Router of Nettypes.ipv4_addr list
  18. | `Server_identifier of Nettypes.ipv4_addr
  19. | `Subnet_mask of Nettypes.ipv4_addr
  20. | `Time_offset of string
  21. | `Time_server of Nettypes.ipv4_addr 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 -> Nettypes.ipv4_addr
module Marshal : sig ... end
module Unmarshal : sig ... end
module Packet : sig ... end
OCaml

Innovation. Community. Security.