commit | c03fa24c411052b083d0272e5244b02d53ca693c | [log] [tgz] |
---|---|---|
author | Yi Tseng <yi@opennetworking.org> | Thu Aug 17 17:43:38 2017 -0700 |
committer | Charles Chan <charles@opennetworking.org> | Fri Aug 18 19:47:53 2017 +0000 |
tree | ac852d089113907242839a196273d906969a3e6a | |
parent | d15afa501e5b8dca31bbdbf0cd89d8c9379de314 [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