blob: ec83b28264f2cae8053d1cb239ceb796440cb7bc [file] [log] [blame]
Jonathan Hart0961fe82014-04-03 09:56:25 -07001package net.onrc.onos.apps.proxyarp;
Jonathan Hart6261dcd2013-07-22 17:58:35 +12002
Jonathan Hart4dfc3652013-08-02 20:22:36 +12003import java.net.InetAddress;
4
Jonathan Hartabad6a52013-09-30 18:17:21 +13005import net.floodlightcontroller.util.MACAddress;
6
7/**
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -07008 * Callback interface for modules using the {@link IProxyArpService} to send ARP
9 * requests.
Jonathan Hartabad6a52013-09-30 18:17:21 +130010 */
Jonathan Hart6261dcd2013-07-22 17:58:35 +120011public interface IArpRequester {
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -070012 /**
13 * Callback method that will be called by the {@link IProxyArpService} when
14 * it receives a reply for a request previously submitted by this
15 * {@code IArpRequester}.
16 *
Ray Milkey269ffb92014-04-03 14:43:30 -070017 * @param ipAddress The IP address than an ARP request was sent for
18 * @param macAddress The MAC address mapped to the requested IP address
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -070019 */
20 public void arpResponse(InetAddress ipAddress, MACAddress macAddress);
Jonathan Hart6261dcd2013-07-22 17:58:35 +120021}