commit | 9e0efbe5fbe1c192402447ee9aca47b71c89c400 | [log] [tgz] |
---|---|---|
author | pier <pier@opennetworking.org> | Wed Oct 28 20:33:56 2020 +0100 |
committer | pier <pier@opennetworking.org> | Wed Oct 28 20:56:08 2020 +0100 |
tree | e7c551cfb121fe0b30aeb3ddb5dd718fa169dbbe | |
parent | d79a679dbc48bb617e4b14ee9e0fd5435d382d66 [diff] |
Prevents DhcpL2Relay changing the parsed Ethernet packet, as this is also used by the other packet processors. Change-Id: I4f707df4c7380d23d51569551f5ae780b967e4c9
diff --git a/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java b/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java index ccc71f5..c391605 100755 --- a/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java +++ b/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java
@@ -738,7 +738,7 @@ return null; } - Ethernet etherReply = ethernetPacket; + Ethernet etherReply = (Ethernet) ethernetPacket.clone(); IPv4 ipv4Packet = (IPv4) etherReply.getPayload(); UDP udpPacket = (UDP) ipv4Packet.getPayload();