blob: 20c6a2802a486206b34b99987e574402f60bdca1 [file] [log] [blame]
package net.onrc.onos.ofcontroller.proxyarp;
import net.floodlightcontroller.packet.ARP;
public class HostArpRequester implements IArpRequester {
private IProxyArpService arpService;
private ARP arpRequest;
private long dpid;
private short port;
//private long requestTime; //in ms
public HostArpRequester(IProxyArpService arpService, ARP arpRequest,
long dpid, short port) {
this.arpService = arpService;
this.arpRequest = arpRequest;
this.dpid = dpid;
this.port = port;
//this.requestTime = System.currentTimeMillis();
}
@Override
public void arpResponse(byte[] mac) {
arpService.sendArpReply(arpRequest, dpid, port, mac);
}
}