| 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. |
| */ |
| 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); |
| |
| } |