Skip to content
Snippets Groups Projects
Commit cb038bb5 authored by Ryan Izard's avatar Ryan Izard
Browse files

Merge pull request #638 from AndreMantas/patch-1

deserialize fix for not-known Ethernet types
parents 4c7df906 b1a86c6c
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,9 @@ public class Ethernet extends BasePacket {
this.payload = new Data(data);
}
} else {
this.payload = new Data(data);
byte[] buf = new byte[bb.remaining()];
bb.get(buf);
this.payload = new Data(buf);
}
this.payload.setParent(this);
return this;
......@@ -503,4 +505,4 @@ public class Ethernet extends BasePacket {
return sb.toString();
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment