blob: 3eef171d2b8f1065dbe4a6056783c1226738f475 [file] [log] [blame]
TeruU3c049c42014-04-15 10:13:25 -07001package net.onrc.onos.apps.proxyarp;
2
3
4/**
5 * Inter-instance notification that an ARP Cache status has been changed.
6 */
7public class ArpCacheNotification {
8
9 private byte[] targetAddress;
10 private byte[] targetMacAddress;
11
12 private ArpCacheNotification() {
13 targetAddress = null;
14 targetMacAddress = null;
15 }
16
17 /**
18 * Class constructor.
19 *
20 * @param targetAddress IP address
21 * @param targetMacAddress MAC address
22 */
23 public ArpCacheNotification(byte[] targetAddress,
24 byte[] targetMacAddress) {
25 this.targetAddress = (byte[]) targetAddress.clone();
26 this.targetMacAddress = (byte[]) targetMacAddress.clone();
27 }
28
29 /**
30 * Returns the IP address.
31 *
32 * @return the IP address
33 */
34 public byte[] getTargetAddress() {
35 return (byte[]) targetAddress.clone();
36 }
37
38 /**
39 * Returns the MAC address.
40 *
41 * @return the MAC address
42 */
43 public byte[] getTargetMacAddress() {
44 return (byte[]) targetMacAddress.clone();
45 }
46
47}