blob: 48d04e01c01a6fa47b7b24f36e614ea83e555613 [file] [log] [blame]
Jonathan Hart7804bea2014-01-07 10:50:52 -08001package net.onrc.onos.ofcontroller.proxyarp;
2
3import java.io.Serializable;
4import java.net.InetAddress;
5
6import net.floodlightcontroller.util.MACAddress;
7
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -07008/**
9 * Inter-instance notification that an ARP reply has been received. The
10 * notification contains both the IP address and the MAC address.
11 */
Jonathan Hart7804bea2014-01-07 10:50:52 -080012public class ArpReplyNotification implements Serializable {
13
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -070014 private static final long serialVersionUID = 1L;
Jonathan Hart7804bea2014-01-07 10:50:52 -080015
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -070016 private InetAddress targetAddress;
17 private MACAddress targetMacAddress;
Jonathan Hart7804bea2014-01-07 10:50:52 -080018
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -070019 /**
20 * Class constructor.
21 * @param targetAddress IP address received from the ARP reply
22 * @param targetMacAddress MAC address received from the ARP reply
23 */
24 public ArpReplyNotification(InetAddress targetAddress,
25 MACAddress targetMacAddress) {
26 this.targetAddress = targetAddress;
27 this.targetMacAddress = targetMacAddress;
28 }
29
30 /**
31 * Returns the IP address of the ARP reply.
32 * @return the IP address
33 */
34 public InetAddress getTargetAddress() {
35 return targetAddress;
36 }
37
38 /**
39 * Returns the MAC address of the ARP reply.
40 * @return the MAC address
41 */
42 public MACAddress getTargetMacAddress() {
43 return targetMacAddress;
44 }
Jonathan Hart7804bea2014-01-07 10:50:52 -080045
46}