blob: 4ee43c75f5b94d05ea3b71ff1f9b049c0feca5d4 [file] [log] [blame]
package org.onlab.onos.net.proxyarp;
import org.onlab.packet.Ethernet;
import org.onlab.packet.IpPrefix;
/**
* Service for processing arp requests on behalf of applications.
*/
// TODO: move to the peer host package
public interface ProxyArpService {
/**
* Returns whether this particular ip address is known to the system.
*
* @param addr a ip address
* @return true if know, false otherwise
*/
boolean known(IpPrefix addr);
/**
* Sends a reply for a given request. If the host is not known then the arp
* will be flooded at all edge ports.
*
* @param eth an arp request
*/
void reply(Ethernet eth);
/**
* Forwards an ARP request to its destination. Floods at the edge the ARP request if the
* destination is not known.
*
* @param eth an ethernet frame containing an ARP request.
*/
void forward(Ethernet eth);
}