This commit is contained in:
h345983745 2019-08-19 21:05:38 +01:00
parent b14cb99587
commit b8dbb11136
2 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@ class ParseUDP extends Operation {
this.name = "Parse UDP";
this.module = "Default";
this.description = "Parses a UDP header and payload if present.";
this.description = "Parses a UDP header and payload (if present).";
this.infoURL = "https://wikipedia.org/wiki/User_Datagram_Protocol";
this.inputType = "byteArray";
this.outputType = "json";
@ -44,7 +44,7 @@ class ParseUDP extends Operation {
//Parse Header
const UDPPacket = {
"Source port": s.readInt(2),
"Desination port": s.readInt(2),
"Destination port": s.readInt(2),
"Length": s.readInt(2),
"Checksum": toHex(s.getBytes(2), "0x")
};