commit | 1696f563a42cd9106f2a22ce037262387b370654 | [log] [tgz] |
---|---|---|
author | Yi Tseng <yi@opennetworking.org> | Thu Aug 17 17:43:38 2017 -0700 |
committer | Yi Tseng <yi@opennetworking.org> | Thu Aug 17 17:43:38 2017 -0700 |
tree | 69792dbbf825b44f63b2534821cebf7c48b073dc | |
parent | ef9fccf164b832ad3ded6bccb3f31117c8051026 [diff] |
Fix incorrect destination mac for DHCP relay The destination mac should be client mac if it is directly attach case Change-Id: Ibdc029b583ce3448af5e67338da9cdf4780c8a1c
diff --git a/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/Dhcp4HandlerImpl.java b/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/Dhcp4HandlerImpl.java index 072870e..0305cd8 100644 --- a/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/Dhcp4HandlerImpl.java +++ b/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/Dhcp4HandlerImpl.java
@@ -506,7 +506,8 @@ log.warn("Can't find record for host id {}, discard packet", hostId); return null; } - + } else { + etherReply.setDestinationMACAddress(dhcpPayload.getClientHardwareAddress()); } // we leave the srcMac from the original packet