Library
Module
Module type
Parameter
Class
Class type
module Ethernet : Mirage_protocols.ETHERNET
module Time : Mirage_time.S
include Mirage_protocols.ARP
include Mirage_device.S
The type for ARP errors.
val get_ips : t -> Ipaddr.V4.t list
get_ips arp
gets the bound IP address list in the arp
value.
val set_ips : t -> Ipaddr.V4.t list -> unit Lwt.t
set_ips arp
sets the bound IP address list, which will transmit a GARP packet also.
val remove_ip : t -> Ipaddr.V4.t -> unit Lwt.t
remove_ip arp ip
removes ip
to the bound IP address list in the arp
value, which will transmit a GARP packet for any remaining IPs in the bound IP address list after the removal.
val add_ip : t -> Ipaddr.V4.t -> unit Lwt.t
add_ip arp ip
adds ip
to the bound IP address list in the arp
value, which will transmit a GARP packet also.
query arp ip
queries the cache in arp
for an ARP entry corresponding to ip
, which may result in the sender sleeping waiting for a response.
val connect : Ethernet.t -> t Lwt.t