Renamed forwarding and proxyarp packages
net.onrc.onos.ofcontroller.forwarding => net.onrc.onos.apps.forwarding
net.onrc.onos.ofcontroller.proxyarp => net.onrc.onos.apps.proxyarp
Change-Id: Id368d4fd675b00ad84c17d44dd9804f010710cde
diff --git a/src/main/java/net/onrc/onos/apps/proxyarp/ArpReplyNotification.java b/src/main/java/net/onrc/onos/apps/proxyarp/ArpReplyNotification.java
new file mode 100644
index 0000000..bde2734
--- /dev/null
+++ b/src/main/java/net/onrc/onos/apps/proxyarp/ArpReplyNotification.java
@@ -0,0 +1,46 @@
+package net.onrc.onos.apps.proxyarp;
+
+import java.io.Serializable;
+
+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 int targetAddress;
+ private MACAddress targetMacAddress;
+
+ protected ArpReplyNotification() {}
+ /**
+ * Class constructor.
+ * @param targetAddress IP address received from the ARP reply
+ * @param targetMacAddress MAC address received from the ARP reply
+ */
+ public ArpReplyNotification(int targetAddress,
+ MACAddress targetMacAddress) {
+ this.targetAddress = targetAddress;
+ this.targetMacAddress = targetMacAddress;
+ }
+
+ /**
+ * Returns the IP address of the ARP reply.
+ * @return the IP address
+ */
+ public int getTargetAddress() {
+ return targetAddress;
+ }
+
+ /**
+ * Returns the MAC address of the ARP reply.
+ * @return the MAC address
+ */
+ public MACAddress getTargetMacAddress() {
+ return targetMacAddress;
+ }
+
+}