blob: 48d04e01c01a6fa47b7b24f36e614ea83e555613 [file] [log] [blame]
package net.onrc.onos.ofcontroller.proxyarp;
import java.io.Serializable;
import java.net.InetAddress;
import net.floodlightcontroller.util.MACAddress;
/**
* Inter-instance notification that an ARP reply has been received. The
* notification contains both the IP address and the MAC address.
*/
public class ArpReplyNotification implements Serializable {
private static final long serialVersionUID = 1L;
private InetAddress targetAddress;
private MACAddress targetMacAddress;
/**
* Class constructor.
* @param targetAddress IP address received from the ARP reply
* @param targetMacAddress MAC address received from the ARP reply
*/
public ArpReplyNotification(InetAddress targetAddress,
MACAddress targetMacAddress) {
this.targetAddress = targetAddress;
this.targetMacAddress = targetMacAddress;
}
/**
* Returns the IP address of the ARP reply.
* @return the IP address
*/
public InetAddress getTargetAddress() {
return targetAddress;
}
/**
* Returns the MAC address of the ARP reply.
* @return the MAC address
*/
public MACAddress getTargetMacAddress() {
return targetMacAddress;
}
}