blob: 51a629567635181862e4e1fb471b096d78607ecc [file] [log] [blame]
Jonathan Hart6261dcd2013-07-22 17:58:35 +12001package net.onrc.onos.ofcontroller.proxyarp;
2
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 *
11 */
Jonathan Hart6261dcd2013-07-22 17:58:35 +120012public interface IArpRequester {
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -070013 /**
14 * Callback method that will be called by the {@link IProxyArpService} when
15 * it receives a reply for a request previously submitted by this
16 * {@code IArpRequester}.
17 *
18 * @param ipAddress
19 * The IP address than an ARP request was sent for
20 * @param macAddress
21 * The MAC address mapped to the requested IP address
22 */
23 public void arpResponse(InetAddress ipAddress, MACAddress macAddress);
Jonathan Hart6261dcd2013-07-22 17:58:35 +120024}