alshabib | b7b4063 | 2014-09-28 21:30:00 -0700 | [diff] [blame^] | 1 | package org.onlab.onos.net.proxyarp; |
| 2 | |
| 3 | import org.onlab.packet.Ethernet; |
| 4 | import org.onlab.packet.IpPrefix; |
| 5 | |
| 6 | /** |
| 7 | * Service for processing arp requests on behalf of applications. |
| 8 | */ |
| 9 | public interface ProxyArpService { |
| 10 | |
| 11 | /** |
| 12 | * Returns whether this particular ip address is known to the system. |
| 13 | * |
| 14 | * @param addr |
| 15 | * a ip address |
| 16 | * @return true if know, false otherwise |
| 17 | */ |
| 18 | boolean known(IpPrefix addr); |
| 19 | |
| 20 | /** |
| 21 | * Sends a reply for a given request. If the host is not known then the arp |
| 22 | * will be flooded at all edge ports. |
| 23 | * |
| 24 | * @param request |
| 25 | * an arp request |
| 26 | */ |
| 27 | void reply(Ethernet request); |
| 28 | |
| 29 | } |