Jonathan Hart | 6261dcd | 2013-07-22 17:58:35 +1200 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.proxyarp; |
| 2 | |
Jonathan Hart | 4dfc365 | 2013-08-02 20:22:36 +1200 | [diff] [blame] | 3 | import java.net.InetAddress; |
| 4 | |
Jonathan Hart | abad6a5 | 2013-09-30 18:17:21 +1300 | [diff] [blame] | 5 | import net.floodlightcontroller.util.MACAddress; |
| 6 | |
| 7 | /** |
| 8 | * Callback interface for modules using the {@link IProxyArpService} to |
| 9 | * send ARP requests. |
| 10 | * |
| 11 | */ |
Jonathan Hart | 6261dcd | 2013-07-22 17:58:35 +1200 | [diff] [blame] | 12 | public interface IArpRequester { |
Jonathan Hart | abad6a5 | 2013-09-30 18:17:21 +1300 | [diff] [blame] | 13 | /** |
| 14 | * Callback method that will be called by the {@link IProxyArpService} |
| 15 | * when it receives a reply for a request previously submitted by this |
| 16 | * {@code IArpRequester}. |
| 17 | * @param ipAddress The IP address than an ARP request was sent for |
| 18 | * @param macAddress The MAC address mapped to the requested IP address |
| 19 | */ |
| 20 | public void arpResponse(InetAddress ipAddress, MACAddress macAddress); |
Jonathan Hart | 6261dcd | 2013-07-22 17:58:35 +1200 | [diff] [blame] | 21 | } |