Reuse NetUtils.BroadcastMACAddr in ArpHandler 92/1792/2
authorAlissa Bonas <abonas@redhat.com>
Thu, 10 Oct 2013 08:19:28 +0000 (11:19 +0300)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 10 Oct 2013 15:55:05 +0000 (15:55 +0000)
Change-Id: Id3dde60da07cb37e40dba79ed3481af794b4356d
Signed-off-by: Alissa Bonas <abonas@redhat.com>
opendaylight/arphandler/src/main/java/org/opendaylight/controller/arphandler/internal/ArpHandler.java

index 9250861..4ff44fd 100644 (file)
@@ -345,7 +345,7 @@ public class ArpHandler implements IHostFinder, IListenDataPacket, ICacheUpdateA
             byte[] targetIPByte = targetIP.getAddress();
             ARP arp = createARP(ARP.REQUEST, getControllerMAC(), senderIP, targetHardwareAddress, targetIPByte);
 
             byte[] targetIPByte = targetIP.getAddress();
             ARP arp = createARP(ARP.REQUEST, getControllerMAC(), senderIP, targetHardwareAddress, targetIPByte);
 
-            byte[] destMACAddress = new byte[] {(byte) -1, (byte) -1, (byte) -1, (byte) -1,(byte) -1,(byte) -1 };
+            byte[] destMACAddress = NetUtils.BroadcastMACAddr;
             Ethernet ethernet = createEthernet(getControllerMAC(), destMACAddress, arp);
 
             // TODO For now send port-by-port, see how to optimize to
             Ethernet ethernet = createEthernet(getControllerMAC(), destMACAddress, arp);
 
             // TODO For now send port-by-port, see how to optimize to