We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37a9246 commit 1c5fafdCopy full SHA for 1c5fafd
1 file changed
src/core/operations/ParseIPv4Header.mjs
@@ -74,7 +74,7 @@ class ParseIPv4Header extends Operation {
74
checksum = input[10] << 8 | input[11],
75
srcIP = input[12] << 24 | input[13] << 16 | input[14] << 8 | input[15],
76
dstIP = input[16] << 24 | input[17] << 16 | input[18] << 8 | input[19],
77
- checksumHeader = input.slice(0, 10).concat([0, 0]).concat(input.slice(12, 20));
+ checksumHeader = [...input.slice(0, 10), 0, 0, ...input.slice(12, 20)];
78
let version = (input[0] >>> 4) & 0x0f,
79
options = [];
80
0 commit comments