commit | c4a0beab984783d7f51085b828c77ac586e1f714 | [log] [tgz] |
---|---|---|
author | Yi Tseng <yi@opennetworking.org> | Tue Oct 03 09:58:19 2017 -0700 |
committer | Thomas Vachuska <tom@opennetworking.org> | Tue Oct 03 18:01:45 2017 +0000 |
tree | dbe3a08198c69552d2877c8f7f1ba218e60bc2d7 | |
parent | 250ad71bb67a2310214917976d36667d9b0a445d [diff] |
[CORD-2016] DHCPv4 packet broadcast flag is not reset in relay Change-Id: I99a82693b69e042b197d44174095f4058ed40200
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 b9cbd5b..85540c6 100644 --- a/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/Dhcp4HandlerImpl.java +++ b/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/Dhcp4HandlerImpl.java
@@ -577,6 +577,9 @@ } } + // Remove broadcast flag + dhcpPacket.setFlags((short) 0); + udpPacket.setPayload(dhcpPacket); // As a DHCP relay, the source port should be server port( instead // of client port.