@netkitty/codec 1.2.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/CHANGELOG.md +295 -0
  2. package/README.md +62 -10
  3. package/README.zh-CN.md +55 -9
  4. package/dist/Codec.d.ts +3 -2
  5. package/dist/Codec.js +109 -10
  6. package/dist/abstracts/BaseHeader.d.ts +54 -2
  7. package/dist/abstracts/BaseHeader.js +185 -43
  8. package/dist/errors/CodecSchemaValidateError.d.ts +34 -1
  9. package/dist/errors/CodecSchemaValidateError.js +26 -3
  10. package/dist/headers/ADSAMS.js +2 -0
  11. package/dist/headers/AH.js +4 -2
  12. package/dist/headers/AMQP.js +2 -1
  13. package/dist/headers/ARP.js +16 -10
  14. package/dist/headers/BACnetIP.js +1 -0
  15. package/dist/headers/BFD.d.ts +2 -1
  16. package/dist/headers/BFD.js +30 -4
  17. package/dist/headers/BGP.js +6 -1
  18. package/dist/headers/Babel.js +2 -1
  19. package/dist/headers/BitTorrent.d.ts +2 -0
  20. package/dist/headers/BitTorrent.js +4 -2
  21. package/dist/headers/C37118.d.ts +3 -2
  22. package/dist/headers/C37118.js +35 -15
  23. package/dist/headers/CAPWAP.js +1 -0
  24. package/dist/headers/CDP.d.ts +3 -3
  25. package/dist/headers/CDP.js +47 -11
  26. package/dist/headers/CMS.js +27 -12
  27. package/dist/headers/COTP.d.ts +2 -0
  28. package/dist/headers/COTP.js +8 -4
  29. package/dist/headers/CassandraCQL.js +1 -0
  30. package/dist/headers/CoAP.js +20 -2
  31. package/dist/headers/Codesys.js +1 -0
  32. package/dist/headers/Collectd.js +1 -1
  33. package/dist/headers/DCCP.d.ts +3 -2
  34. package/dist/headers/DCCP.js +61 -8
  35. package/dist/headers/DHCPFailover.js +1 -0
  36. package/dist/headers/DNP3.d.ts +5 -3
  37. package/dist/headers/DNP3.js +62 -7
  38. package/dist/headers/DNS.js +3 -3
  39. package/dist/headers/DTLS.js +1 -0
  40. package/dist/headers/Diameter.js +3 -2
  41. package/dist/headers/EAPOL.js +1 -1
  42. package/dist/headers/EIGRP.d.ts +3 -2
  43. package/dist/headers/EIGRP.js +32 -6
  44. package/dist/headers/ENIP.js +1 -0
  45. package/dist/headers/Elasticsearch.js +1 -0
  46. package/dist/headers/EtherCAT.js +1 -0
  47. package/dist/headers/EthernetII.js +7 -0
  48. package/dist/headers/FTP.js +6 -6
  49. package/dist/headers/Finger.js +3 -3
  50. package/dist/headers/FoundationFieldbusHSE.js +1 -0
  51. package/dist/headers/GELF.js +8 -1
  52. package/dist/headers/GENEVE.js +2 -1
  53. package/dist/headers/GLBP.js +1 -1
  54. package/dist/headers/GRE.js +1 -0
  55. package/dist/headers/GTPU.js +1 -0
  56. package/dist/headers/GTPv2C.js +2 -0
  57. package/dist/headers/GitProtocol.js +2 -2
  58. package/dist/headers/Goose.js +24 -12
  59. package/dist/headers/Gopher.js +6 -6
  60. package/dist/headers/HARTIP.js +1 -0
  61. package/dist/headers/HSR.js +3 -0
  62. package/dist/headers/HTTP.js +6 -6
  63. package/dist/headers/HTTP2.js +2 -0
  64. package/dist/headers/ICMP.js +3 -1
  65. package/dist/headers/ICMPv6.js +11 -16
  66. package/dist/headers/IEC104_I_Frame.js +215 -163
  67. package/dist/headers/IEC104_S_Frame.js +26 -3
  68. package/dist/headers/IEC104_U_Frame.js +33 -4
  69. package/dist/headers/IEC61850SampledValues.js +6 -5
  70. package/dist/headers/IGMP.d.ts +8 -7
  71. package/dist/headers/IGMP.js +58 -19
  72. package/dist/headers/IMAP.js +5 -5
  73. package/dist/headers/IPFIX.js +3 -2
  74. package/dist/headers/IPv4.js +41 -21
  75. package/dist/headers/IPv6.js +5 -1
  76. package/dist/headers/IPv6HopByHopOptions.js +15 -12
  77. package/dist/headers/IRC.js +4 -4
  78. package/dist/headers/ISAKMP.js +3 -1
  79. package/dist/headers/ISCSI.js +2 -0
  80. package/dist/headers/ISIS.js +2 -1
  81. package/dist/headers/ISOSession.d.ts +2 -0
  82. package/dist/headers/ISOSession.js +14 -10
  83. package/dist/headers/Ident.js +8 -8
  84. package/dist/headers/KNXnetIP.js +1 -0
  85. package/dist/headers/Kafka.js +1 -0
  86. package/dist/headers/Kerberos.js +2 -0
  87. package/dist/headers/L2TP.js +3 -2
  88. package/dist/headers/LACP.js +1 -1
  89. package/dist/headers/LDAP.js +3 -4
  90. package/dist/headers/LDP.js +1 -0
  91. package/dist/headers/LLC.d.ts +2 -0
  92. package/dist/headers/LLC.js +3 -0
  93. package/dist/headers/LPD.js +3 -3
  94. package/dist/headers/MGCP.js +7 -7
  95. package/dist/headers/MMS.d.ts +2 -0
  96. package/dist/headers/MMS.js +10 -6
  97. package/dist/headers/MQTT.js +1 -0
  98. package/dist/headers/MQTTSN.js +1 -0
  99. package/dist/headers/MarkerProtocol.js +1 -1
  100. package/dist/headers/Megaco.js +3 -3
  101. package/dist/headers/Memcached.js +3 -2
  102. package/dist/headers/ModbusTCP.js +1 -0
  103. package/dist/headers/ModbusUDP.js +1 -0
  104. package/dist/headers/MongoDB.js +1 -0
  105. package/dist/headers/MySQL.js +1 -0
  106. package/dist/headers/NATS.js +2 -2
  107. package/dist/headers/NBDS.js +1 -0
  108. package/dist/headers/NBSS.js +1 -0
  109. package/dist/headers/NFS.js +1 -0
  110. package/dist/headers/NHRP.d.ts +1 -1
  111. package/dist/headers/NHRP.js +30 -4
  112. package/dist/headers/NNTP.js +6 -6
  113. package/dist/headers/NetFlowV5.js +1 -0
  114. package/dist/headers/OLSR.js +2 -1
  115. package/dist/headers/OPCUA.js +1 -0
  116. package/dist/headers/OSPF.d.ts +3 -3
  117. package/dist/headers/OSPF.js +72 -7
  118. package/dist/headers/OpenFlow.js +1 -0
  119. package/dist/headers/OpenVPN.js +1 -0
  120. package/dist/headers/PCWorx.js +1 -0
  121. package/dist/headers/PIM.d.ts +3 -3
  122. package/dist/headers/PIM.js +55 -6
  123. package/dist/headers/POP3.js +5 -5
  124. package/dist/headers/PPPoEDiscovery.js +4 -1
  125. package/dist/headers/PPPoESession.js +1 -0
  126. package/dist/headers/PPTP.js +1 -0
  127. package/dist/headers/PTP.js +6 -1
  128. package/dist/headers/PostgreSQL.js +2 -0
  129. package/dist/headers/QUIC.js +2 -0
  130. package/dist/headers/RADIUS.js +1 -0
  131. package/dist/headers/RDP.d.ts +2 -0
  132. package/dist/headers/RDP.js +6 -1
  133. package/dist/headers/RFB.js +4 -4
  134. package/dist/headers/RGoose.js +8 -1
  135. package/dist/headers/RSVP.d.ts +3 -3
  136. package/dist/headers/RSVP.js +59 -44
  137. package/dist/headers/RTCP.js +2 -0
  138. package/dist/headers/RTP.js +2 -1
  139. package/dist/headers/RTPS.d.ts +2 -0
  140. package/dist/headers/RTPS.js +4 -1
  141. package/dist/headers/RTSP.js +7 -7
  142. package/dist/headers/RawData.js +1 -1
  143. package/dist/headers/Redis.js +4 -4
  144. package/dist/headers/Rlogin.js +5 -5
  145. package/dist/headers/Rsync.js +2 -2
  146. package/dist/headers/S7comm.d.ts +2 -0
  147. package/dist/headers/S7comm.js +5 -1
  148. package/dist/headers/SCTP.d.ts +2 -2
  149. package/dist/headers/SCTP.js +31 -7
  150. package/dist/headers/SFlow.js +2 -1
  151. package/dist/headers/SIP.js +6 -6
  152. package/dist/headers/SLMP.js +1 -0
  153. package/dist/headers/SLP.js +2 -0
  154. package/dist/headers/SLPv1.js +1 -0
  155. package/dist/headers/SMB1.js +1 -0
  156. package/dist/headers/SMB2.js +1 -0
  157. package/dist/headers/SMPP.js +1 -0
  158. package/dist/headers/SMTP.js +6 -6
  159. package/dist/headers/SNAP.js +18 -5
  160. package/dist/headers/SNMP.js +6 -6
  161. package/dist/headers/SOCKS4.js +11 -5
  162. package/dist/headers/SSDP.js +7 -7
  163. package/dist/headers/SSH.js +5 -4
  164. package/dist/headers/STOMP.js +5 -5
  165. package/dist/headers/STUN.js +3 -1
  166. package/dist/headers/SercosIII.d.ts +3 -2
  167. package/dist/headers/SercosIII.js +41 -5
  168. package/dist/headers/Skinny.js +1 -0
  169. package/dist/headers/StatsD.js +4 -4
  170. package/dist/headers/SunRPC.js +1 -0
  171. package/dist/headers/Syslog.js +2 -2
  172. package/dist/headers/TCP.js +31 -64
  173. package/dist/headers/TLS_Alert.js +42 -12
  174. package/dist/headers/TLS_ApplicationData.d.ts +3 -3
  175. package/dist/headers/TLS_ApplicationData.js +32 -8
  176. package/dist/headers/TLS_ChangeCipherSpec.d.ts +2 -2
  177. package/dist/headers/TLS_ChangeCipherSpec.js +33 -8
  178. package/dist/headers/TLS_Handshake.js +78 -30
  179. package/dist/headers/TLS_Heartbeat.d.ts +4 -3
  180. package/dist/headers/TLS_Heartbeat.js +50 -8
  181. package/dist/headers/TPKT.js +4 -2
  182. package/dist/headers/TacacsPlus.js +1 -0
  183. package/dist/headers/Telnet.js +2 -1
  184. package/dist/headers/Teredo.js +2 -2
  185. package/dist/headers/UDP.js +20 -56
  186. package/dist/headers/VLAN_802dot1Q.js +8 -0
  187. package/dist/headers/VRRP.d.ts +2 -1
  188. package/dist/headers/VRRP.js +45 -9
  189. package/dist/headers/WCCP.js +1 -0
  190. package/dist/headers/WHOIS.js +3 -3
  191. package/dist/headers/WSDiscovery.js +2 -2
  192. package/dist/headers/XMPP.js +3 -3
  193. package/dist/headers/Zabbix.js +1 -0
  194. package/dist/helper/Checksum.d.ts +15 -0
  195. package/dist/helper/Checksum.js +56 -0
  196. package/dist/helper/Crc.d.ts +18 -0
  197. package/dist/helper/Crc.js +58 -0
  198. package/dist/index.d.ts +3 -3
  199. package/dist/lib/SchemaValidator.d.ts +31 -0
  200. package/dist/lib/SchemaValidator.js +137 -0
  201. package/dist/schema/ProtocolFieldJSONSchema.d.ts +4 -1
  202. package/dist/schema/ProtocolJSONSchema.d.ts +1 -1
  203. package/dist/types/CodecErrorInfo.d.ts +11 -0
  204. package/dist/types/LayerGraph.d.ts +14 -1
  205. package/package.json +2 -2
@@ -45,6 +45,7 @@ class IPv6HopByHopOptions extends BaseHeader_1.BaseHeader {
45
45
  type: 'object',
46
46
  properties: {
47
47
  nxt: {
48
+ autoCalculated: true,
48
49
  type: 'integer',
49
50
  label: 'Next Header',
50
51
  minimum: 0,
@@ -60,6 +61,7 @@ class IPv6HopByHopOptions extends BaseHeader_1.BaseHeader {
60
61
  },
61
62
  len: {
62
63
  type: 'integer',
64
+ autoCalculated: true,
63
65
  label: 'Length',
64
66
  minimum: 0,
65
67
  maximum: 255,
@@ -67,10 +69,11 @@ class IPv6HopByHopOptions extends BaseHeader_1.BaseHeader {
67
69
  this.instance.len.setValue((0, BufferToNumber_1.BufferToUInt8)(this.readBytes(1, 1)));
68
70
  },
69
71
  encode: () => {
72
+ const leftOut = this.isLeftOut(this.instance.len);
70
73
  const len = this.instance.len.getValue(0);
71
74
  this.instance.len.setValue(len);
72
75
  this.writeBytes(1, (0, NumberToBuffer_1.UInt8ToBuffer)(len));
73
- if (!len) {
76
+ if (leftOut) {
74
77
  this.addPostSelfEncodeHandler(() => {
75
78
  //Total header = 2 (nxt+len) + options area, and must be an integral
76
79
  //multiple of 8 octets (RFC 8200 §4.3). items encode already padded the
@@ -376,68 +379,68 @@ class IPv6HopByHopOptions extends BaseHeader_1.BaseHeader {
376
379
  case Type.PadN:
377
380
  {
378
381
  const typedItem = { ...item };
379
- parts.push(tlvBytes(new node_tlv_1.default(0x01, Buffer.alloc(typedItem.n, 0))));
382
+ parts.push(tlvBytes(new node_tlv_1.default(0x01, Buffer.alloc(typedItem.n ?? 0, 0))));
380
383
  }
381
384
  break;
382
385
  case Type.Tunnel_Encapsulation_Limit:
383
386
  {
384
387
  const typedItem = { ...item };
385
- parts.push(tlvBytes(new node_tlv_1.default(0x04, (0, NumberToBuffer_1.UInt8ToBuffer)(typedItem.limit))));
388
+ parts.push(tlvBytes(new node_tlv_1.default(0x04, (0, NumberToBuffer_1.UInt8ToBuffer)(typedItem.limit ?? 0))));
386
389
  }
387
390
  break;
388
391
  case Type.Router_Alert:
389
392
  {
390
393
  const typedItem = { ...item };
391
- parts.push(tlvBytes(new node_tlv_1.default(0x05, (0, NumberToBuffer_1.UInt16ToBuffer)((0, HexToNumber_1.HexToUInt16)(typedItem.alert)))));
394
+ parts.push(tlvBytes(new node_tlv_1.default(0x05, (0, NumberToBuffer_1.UInt16ToBuffer)((0, HexToNumber_1.HexToUInt16)(typedItem.alert ?? '0000')))));
392
395
  }
393
396
  break;
394
397
  case Type.CALIPSO:
395
398
  {
396
399
  const typedItem = { ...item };
397
- parts.push(tlvBytes(new node_tlv_1.default(0x07, (0, NumberToBuffer_1.UInt64ToBuffer)((0, HexToNumber_1.HexToUInt64)(typedItem.tag)))));
400
+ parts.push(tlvBytes(new node_tlv_1.default(0x07, (0, NumberToBuffer_1.UInt64ToBuffer)((0, HexToNumber_1.HexToUInt64)(typedItem.tag ?? '0000000000000000')))));
398
401
  }
399
402
  break;
400
403
  case Type.SMF_DPD:
401
404
  {
402
405
  const typedItem = { ...item };
403
- parts.push(tlvBytes(new node_tlv_1.default(0x08, Buffer.from(typedItem.hash, 'hex'))));
406
+ parts.push(tlvBytes(new node_tlv_1.default(0x08, Buffer.from(typedItem.hash ?? '', 'hex'))));
404
407
  }
405
408
  break;
406
409
  case Type.MPL_Option:
407
410
  {
408
411
  const typedItem = { ...item };
409
- parts.push(tlvBytes(new node_tlv_1.default(0x0B, Buffer.from(typedItem.value, 'hex'))));
412
+ parts.push(tlvBytes(new node_tlv_1.default(0x0B, Buffer.from(typedItem.value ?? '', 'hex'))));
410
413
  }
411
414
  break;
412
415
  case Type.ILNP_Nonce:
413
416
  {
414
417
  const typedItem = { ...item };
415
- parts.push(tlvBytes(new node_tlv_1.default(0x0C, Buffer.from(typedItem.nonce.padStart(12, '0'), 'hex'))));
418
+ parts.push(tlvBytes(new node_tlv_1.default(0x0C, Buffer.from((typedItem.nonce ?? '').padStart(12, '0'), 'hex'))));
416
419
  }
417
420
  break;
418
421
  case Type.Line_Identification_Option:
419
422
  {
420
423
  const typedItem = { ...item };
421
- parts.push(tlvBytes(new node_tlv_1.default(0x0D, (0, NumberToBuffer_1.UInt32ToBuffer)((0, HexToNumber_1.HexToUInt32)(typedItem.id)))));
424
+ parts.push(tlvBytes(new node_tlv_1.default(0x0D, (0, NumberToBuffer_1.UInt32ToBuffer)((0, HexToNumber_1.HexToUInt32)(typedItem.id ?? '00000000')))));
422
425
  }
423
426
  break;
424
427
  case Type.IPv6_DFF_Header:
425
428
  {
426
429
  const typedItem = { ...item };
427
- parts.push(tlvBytes(new node_tlv_1.default(0x1E, Buffer.from(typedItem.message, 'hex'))));
430
+ parts.push(tlvBytes(new node_tlv_1.default(0x1E, Buffer.from(typedItem.message ?? '', 'hex'))));
428
431
  }
429
432
  break;
430
433
  case Type.Endpoint_Identification:
431
434
  {
432
435
  const typedItem = { ...item };
433
- parts.push(tlvBytes(new node_tlv_1.default(0x8A, Buffer.from(typedItem.id.padStart(32, '0'), 'hex'))));
436
+ parts.push(tlvBytes(new node_tlv_1.default(0x8A, Buffer.from((typedItem.id ?? '').padStart(32, '0'), 'hex'))));
434
437
  }
435
438
  break;
436
439
  default: {
437
440
  if (typeof item.type !== 'number')
438
441
  return;
439
442
  const customItem = { ...item };
440
- parts.push(tlvBytes(new node_tlv_1.default(customItem.type, Buffer.from(customItem.data, 'hex'))));
443
+ parts.push(tlvBytes(new node_tlv_1.default(customItem.type, Buffer.from(customItem.data ?? '', 'hex'))));
441
444
  }
442
445
  }
443
446
  });
@@ -134,10 +134,10 @@ class IRC extends BaseHeader_1.BaseHeader {
134
134
  //message field above, never read back). prefix is the optional message source; command is
135
135
  //the verb word or numeric reply code; params is the remainder (including any :trailing);
136
136
  //isNumeric marks a 3-digit numeric reply.
137
- prefix: { type: 'string', label: 'Prefix' },
138
- command: { type: 'string', label: 'Command' },
139
- params: { type: 'string', label: 'Params' },
140
- isNumeric: { type: 'boolean', label: 'Is Numeric' }
137
+ prefix: { type: 'string', label: 'Prefix', readOnly: true },
138
+ command: { type: 'string', label: 'Command', readOnly: true },
139
+ params: { type: 'string', label: 'Params', readOnly: true },
140
+ isNumeric: { type: 'boolean', label: 'Is Numeric', readOnly: true }
141
141
  }
142
142
  };
143
143
  }
@@ -67,6 +67,7 @@ class ISAKMP extends BaseHeader_1.BaseHeader {
67
67
  label: 'Version',
68
68
  properties: {
69
69
  major: {
70
+ default: 2,
70
71
  type: 'integer', label: 'Major', minimum: 0, maximum: 15,
71
72
  decode: function () { this.instance.version.major.setValue(this.readBits(17, 1, 0, 4)); },
72
73
  encode: function () { this.writeBits(17, 1, 0, 4, this.instance.version.major.getValue(2)); }
@@ -85,6 +86,7 @@ class ISAKMP extends BaseHeader_1.BaseHeader {
85
86
  messageId: this.fieldUInt('messageId', 20, 4, 'Message ID'),
86
87
  length: {
87
88
  type: 'integer',
89
+ autoCalculated: true,
88
90
  label: 'Length',
89
91
  minimum: 0,
90
92
  maximum: 4294967295,
@@ -119,7 +121,7 @@ class ISAKMP extends BaseHeader_1.BaseHeader {
119
121
  nextPayload: { type: 'integer', label: 'Next Payload', minimum: 0, maximum: 255 },
120
122
  critical: { type: 'boolean', label: 'Critical' },
121
123
  reserved: { type: 'integer', label: 'Reserved', minimum: 0, maximum: 127, hidden: true },
122
- payloadLength: { type: 'integer', label: 'Payload Length', minimum: 0, maximum: 65535 },
124
+ payloadLength: { type: 'integer', label: 'Payload Length', autoCalculated: true, minimum: 0, maximum: 65535 },
123
125
  body: { type: 'string', label: 'Body', contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.HEX }
124
126
  }
125
127
  },
@@ -181,6 +181,7 @@ class ISCSI extends BaseHeader_1.BaseHeader {
181
181
  //derived from the actual data segment length.
182
182
  dataSegmentLength: {
183
183
  type: 'integer',
184
+ autoCalculated: true,
184
185
  label: 'Data Segment Length',
185
186
  minimum: 0,
186
187
  maximum: 16777215,
@@ -244,6 +245,7 @@ class ISCSI extends BaseHeader_1.BaseHeader {
244
245
  //TCP payload so a lying DataSegmentLength can't read past the datagram.
245
246
  dataSegment: {
246
247
  type: 'string',
248
+ byteAlignment: 4,
247
249
  label: 'Data Segment',
248
250
  minLength: 0,
249
251
  contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.HEX,
@@ -36,7 +36,8 @@ class ISIS extends BaseHeader_1.BaseHeader {
36
36
  type: 'object',
37
37
  summary: 'IS-IS type=${pduType}',
38
38
  properties: {
39
- irpDiscriminator: this.fieldHex('irpDiscriminator', 0, 1, 'IRP Discriminator'),
39
+ //Default 0x83: the IS-IS Intradomain Routeing Protocol Discriminator match() requires.
40
+ irpDiscriminator: { ...this.fieldHex('irpDiscriminator', 0, 1, 'IRP Discriminator'), default: '83' },
40
41
  lengthIndicator: this.fieldUInt('lengthIndicator', 1, 1, 'Length Indicator'),
41
42
  versionProtocolIdExtension: this.fieldUInt('versionProtocolIdExtension', 2, 1, 'Version/Protocol Id Extension'),
42
43
  idLength: this.fieldUInt('idLength', 3, 1, 'ID Length'),
@@ -1,4 +1,5 @@
1
1
  import { BaseHeader } from '../abstracts/BaseHeader';
2
+ import { HeuristicParent } from '../types/LayerGraph';
2
3
  import { ProtocolJSONSchema } from '../schema/ProtocolJSONSchema';
3
4
  import { DemuxProducer } from '../types/DemuxProducer';
4
5
  /**
@@ -21,6 +22,7 @@ export declare class ISOSession extends BaseHeader {
21
22
  readonly name: string;
22
23
  readonly nickname: string;
23
24
  readonly matchKeys: string[];
25
+ readonly heuristicParents: HeuristicParent[];
24
26
  readonly heuristicFallback: boolean;
25
27
  match(): boolean;
26
28
  readonly demuxProducers: DemuxProducer[];
@@ -25,6 +25,8 @@ class ISOSession extends BaseHeader_1.BaseHeader {
25
25
  this.nickname = 'ISO-SES';
26
26
  //A content-heuristic child of COTP (unkeyed), selected by a session SI at the start of the COTP payload.
27
27
  this.matchKeys = [];
28
+ //Editor graph: matched by content, so list it under these parents in allowedNextLayers().
29
+ this.heuristicParents = [{ parent: 'cotp', discriminator: { field: 'pduType', value: 0xf0 } }];
28
30
  this.heuristicFallback = true;
29
31
  //The Presentation/MMS PDU follows as a child — nothing demuxes off Session by a field value.
30
32
  this.demuxProducers = [];
@@ -223,11 +225,13 @@ class ISOSession extends BaseHeader_1.BaseHeader {
223
225
  spdus: {
224
226
  type: 'array',
225
227
  label: 'SPDUs',
228
+ //Default: Give Tokens + Data Transfer, the SPDU pair that carries MMS/ACSE data.
229
+ default: [{ si: 1, li: 0, params: '' }, { si: 1, li: 0, params: '' }],
226
230
  items: {
227
231
  type: 'object',
228
232
  properties: {
229
233
  si: { type: 'integer', label: 'SPDU Identifier', minimum: 0, maximum: 255 },
230
- li: { type: 'integer', label: 'Length Indicator', minimum: 0, maximum: 255 },
234
+ li: { type: 'integer', label: 'Length Indicator', autoCalculated: true, minimum: 0, maximum: 255 },
231
235
  params: { type: 'string', label: 'Parameters', contentEncoding: 'hex' }
232
236
  }
233
237
  },
@@ -319,15 +323,15 @@ class ISOSession extends BaseHeader_1.BaseHeader {
319
323
  //Display-only: the ACSE APDU type (AARQ/AARE/…) and application-context-name OID parsed from
320
324
  //a CONNECT/ACCEPT SPDU's user data on decode. No encode closure — the SPDU params above stay
321
325
  //the encode authority.
322
- acseType: { type: 'string', label: 'ACSE APDU' },
323
- acseAppContext: { type: 'string', label: 'ACSE Application Context' },
324
- acseCalledApTitle: { type: 'string', label: 'ACSE Called AP-Title' },
325
- acseCallingApTitle: { type: 'string', label: 'ACSE Calling AP-Title' },
326
- acseRespondingApTitle: { type: 'string', label: 'ACSE Responding AP-Title' },
327
- mmsInitMaxServOutstandingCalling: { type: 'integer', label: 'MMS Init Max Serv Outstanding Calling' },
328
- mmsInitMaxServOutstandingCalled: { type: 'integer', label: 'MMS Init Max Serv Outstanding Called' },
329
- mmsInitNestingLevel: { type: 'integer', label: 'MMS Init Data Structure Nesting Level' },
330
- mmsInitVersion: { type: 'integer', label: 'MMS Init Version' }
326
+ acseType: { type: 'string', label: 'ACSE APDU', readOnly: true },
327
+ acseAppContext: { type: 'string', label: 'ACSE Application Context', readOnly: true },
328
+ acseCalledApTitle: { type: 'string', label: 'ACSE Called AP-Title', readOnly: true },
329
+ acseCallingApTitle: { type: 'string', label: 'ACSE Calling AP-Title', readOnly: true },
330
+ acseRespondingApTitle: { type: 'string', label: 'ACSE Responding AP-Title', readOnly: true },
331
+ mmsInitMaxServOutstandingCalling: { type: 'integer', label: 'MMS Init Max Serv Outstanding Calling', readOnly: true },
332
+ mmsInitMaxServOutstandingCalled: { type: 'integer', label: 'MMS Init Max Serv Outstanding Called', readOnly: true },
333
+ mmsInitNestingLevel: { type: 'integer', label: 'MMS Init Data Structure Nesting Level', readOnly: true },
334
+ mmsInitVersion: { type: 'integer', label: 'MMS Init Version', readOnly: true }
331
335
  }
332
336
  };
333
337
  }
@@ -133,15 +133,15 @@ class Ident extends BaseHeader_1.BaseHeader {
133
133
  //`message` field below, never read back). isQuery distinguishes the client query from the
134
134
  //server reply; responseType/opsys/userId apply to a USERID reply, errorType to an ERROR
135
135
  //reply. The two ports are present in both directions.
136
- serverPort: { type: 'integer', label: 'Server Port', minimum: 0, maximum: 65535, default: 0 },
137
- clientPort: { type: 'integer', label: 'Client Port', minimum: 0, maximum: 65535, default: 0 },
138
- isQuery: { type: 'boolean', label: 'Is Query', default: false },
139
- responseType: { type: 'string', label: 'Response Type', default: '' },
140
- opsys: { type: 'string', label: 'Operating System', default: '' },
141
- userId: { type: 'string', label: 'User ID', default: '' },
142
- errorType: { type: 'string', label: 'Error Type', default: '' },
136
+ serverPort: { type: 'integer', label: 'Server Port', readOnly: true, minimum: 0, maximum: 65535, default: 0 },
137
+ clientPort: { type: 'integer', label: 'Client Port', readOnly: true, minimum: 0, maximum: 65535, default: 0 },
138
+ isQuery: { type: 'boolean', label: 'Is Query', readOnly: true, default: false },
139
+ responseType: { type: 'string', label: 'Response Type', readOnly: true, default: '' },
140
+ opsys: { type: 'string', label: 'Operating System', readOnly: true, default: '' },
141
+ userId: { type: 'string', label: 'User ID', readOnly: true, default: '' },
142
+ errorType: { type: 'string', label: 'Error Type', readOnly: true, default: '' },
143
143
  //Drives the one-line summary (query ports / USERID username / ERROR error-type).
144
- summaryInfo: { type: 'string', label: 'Summary', hidden: true, default: '' },
144
+ summaryInfo: { type: 'string', label: 'Summary', readOnly: true, hidden: true, default: '' },
145
145
  //The whole raw payload is the single source of truth: decoded verbatim to hex and
146
146
  //re-emitted untouched (byte-perfect for any Ident payload). The first line is parsed into
147
147
  //the display-only metadata above, which carry no codec of their own.
@@ -74,6 +74,7 @@ class KNXnetIP extends BaseHeader_1.BaseHeader {
74
74
  serviceType: this.fieldUInt('serviceType', 2, 2, 'Service Type'),
75
75
  totalLength: {
76
76
  type: 'integer',
77
+ autoCalculated: true,
77
78
  label: 'Total Length',
78
79
  //minimum 0 (not 6): a crafted/corrupt frame may carry a Total Length below the 6-byte
79
80
  //header, and that value must round-trip (honored verbatim) rather than be rejected by
@@ -56,6 +56,7 @@ class Kafka extends BaseHeader_1.BaseHeader {
56
56
  //as 8 (the fixed apiKey + apiVersion + correlationId header) + payload bytes.
57
57
  messageSize: {
58
58
  type: 'integer',
59
+ autoCalculated: true,
59
60
  label: 'Message Size',
60
61
  minimum: 0,
61
62
  maximum: 4294967295,
@@ -94,6 +94,7 @@ class Kerberos extends BaseHeader_1.BaseHeader {
94
94
  //lie); else derived at self-post-encode time as the encoded message length.
95
95
  recordLength: {
96
96
  type: 'integer',
97
+ autoCalculated: true,
97
98
  label: 'Record Length',
98
99
  minimum: 0,
99
100
  maximum: 4294967295,
@@ -135,6 +136,7 @@ class Kerberos extends BaseHeader_1.BaseHeader {
135
136
  //The message-type application tag (0x6a AS-REQ … 0x7e KRB-ERROR). It is the outer BER tag
136
137
  //of the message, so it is decoded/re-emitted together with the BER length and body below.
137
138
  msgType: {
139
+ default: 0x6a,
138
140
  type: 'integer',
139
141
  label: 'Message Type',
140
142
  minimum: 0,
@@ -76,6 +76,7 @@ class L2TP extends BaseHeader_1.BaseHeader {
76
76
  offset: this.#flagBit('offset', 6, 'Offset Present'),
77
77
  priority: this.#flagBit('priority', 7, 'Priority'),
78
78
  version: {
79
+ default: 2,
79
80
  type: 'integer',
80
81
  label: 'Version',
81
82
  minimum: 0,
@@ -102,12 +103,12 @@ class L2TP extends BaseHeader_1.BaseHeader {
102
103
  }
103
104
  }
104
105
  },
105
- length: { type: 'integer', label: 'Length', minimum: 0, maximum: 65535 },
106
+ length: { type: 'integer', label: 'Length', autoCalculated: true, minimum: 0, maximum: 65535 },
106
107
  tunnelId: { type: 'integer', label: 'Tunnel ID', minimum: 0, maximum: 65535 },
107
108
  sessionId: { type: 'integer', label: 'Session ID', minimum: 0, maximum: 65535 },
108
109
  ns: { type: 'integer', label: 'Ns', minimum: 0, maximum: 65535 },
109
110
  nr: { type: 'integer', label: 'Nr', minimum: 0, maximum: 65535 },
110
- offsetSize: { type: 'integer', label: 'Offset Size', minimum: 0, maximum: 65535 },
111
+ offsetSize: { type: 'integer', label: 'Offset Size', autoCalculated: true, minimum: 0, maximum: 65535 },
111
112
  offsetPad: { type: 'string', label: 'Offset Pad', contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.HEX, hidden: true },
112
113
  avps: {
113
114
  type: 'array',
@@ -54,7 +54,7 @@ class LACP extends BaseHeader_1.BaseHeader {
54
54
  label: 'TLV',
55
55
  properties: {
56
56
  type: { type: 'integer', label: 'Type', minimum: 0, maximum: 255 },
57
- length: { type: 'integer', label: 'Length', minimum: 0, maximum: 255 },
57
+ length: { type: 'integer', label: 'Length', autoCalculated: true, minimum: 0, maximum: 255 },
58
58
  value: { type: 'string', label: 'Value', contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.HEX }
59
59
  }
60
60
  },
@@ -147,9 +147,8 @@ class LDAP extends BaseHeader_1.BaseHeader {
147
147
  //A real LDAP messageID is 0..maxInt, but the on-wire field is a signed BER INTEGER, so a
148
148
  //malformed frame can carry a negative value. The bounds match the signed 32-bit range the
149
149
  //#berInt/#intToBer helpers support, so decode of a malformed negative messageID re-encodes
150
- //faithfully instead of tripping the encode-entry Ajv gate (keeping decode→encode total).
151
- minimum: -2147483648,
152
- maximum: 2147483647,
150
+ //faithfully instead of tripping the encode-entry Ajv gate (keeping decode→encode total). A
151
+ //longer INTEGER can decode too (to a large number), so no bounds at all.
153
152
  decode: function () {
154
153
  const available = this.packet.length - this.startPos;
155
154
  if (available <= 0)
@@ -191,7 +190,7 @@ class LDAP extends BaseHeader_1.BaseHeader {
191
190
  //The protocolOp CHOICE tag: 0x60 bindRequest, 0x61 bindResponse, 0x63 searchRequest,
192
191
  //0x64 searchResultEntry, 0x65 searchResultDone, 0x66 modifyRequest, 0x67 modifyResponse,
193
192
  //0x68 addRequest, 0x69 addResponse, 0x4a delRequest, 0x42 unbindRequest, 0x73 extendedReq …
194
- protocolOpTag: { type: 'integer', label: 'Protocol Op Tag', minimum: 0, maximum: 255 },
193
+ protocolOpTag: { type: 'integer', label: 'Protocol Op Tag', minimum: 0, maximum: 255, default: 0x60 },
195
194
  //The protocolOp body (op length/content + any controls) kept verbatim as hex — see decode.
196
195
  protocolOpData: { type: 'string', label: 'Protocol Op Data', contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.HEX }
197
196
  }
@@ -66,6 +66,7 @@ class LDP extends BaseHeader_1.BaseHeader {
66
66
  version: this.fieldUInt('version', 0, 2, 'Version'),
67
67
  pduLength: {
68
68
  type: 'integer',
69
+ autoCalculated: true,
69
70
  label: 'PDU Length',
70
71
  minimum: 0,
71
72
  maximum: 65535,
@@ -1,4 +1,5 @@
1
1
  import { BaseHeader } from '../abstracts/BaseHeader';
2
+ import { HeuristicParent } from '../types/LayerGraph';
2
3
  import { ProtocolJSONSchema } from '../schema/ProtocolJSONSchema';
3
4
  import { DemuxProducer } from '../types/DemuxProducer';
4
5
  /**
@@ -22,6 +23,7 @@ export declare class LLC extends BaseHeader {
22
23
  readonly name: string;
23
24
  readonly nickname: string;
24
25
  readonly matchKeys: string[];
26
+ readonly heuristicParents: HeuristicParent[];
25
27
  readonly demuxProducers: DemuxProducer[];
26
28
  match(): boolean;
27
29
  }
@@ -28,6 +28,8 @@ class LLC extends BaseHeader_1.BaseHeader {
28
28
  //A content-heuristic child (no matchKeys) — claimed when the Ethernet/VLAN parent's EtherType is a
29
29
  //length (≤ 0x05DC), which cannot be a real EtherType.
30
30
  this.matchKeys = [];
31
+ //Editor graph: matched by content, so list it under these parents in allowedNextLayers().
32
+ this.heuristicParents = ['eth', 'vlan'];
31
33
  this.demuxProducers = [{ field: 'dsap', namespace: 'llcsap', kind: 'uint' }];
32
34
  }
33
35
  static #schemaCache;
@@ -48,6 +50,7 @@ class LLC extends BaseHeader_1.BaseHeader {
48
50
  //Supervisory). Stored as hex preserving its on-wire length so encode reproduces it exactly;
49
51
  //because the non-dry read grows headerLength, the child layer starts at the correct offset.
50
52
  control: {
53
+ default: '03',
51
54
  type: 'string',
52
55
  label: 'Control',
53
56
  contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.HEX,
@@ -121,9 +121,9 @@ class LPD extends BaseHeader_1.BaseHeader {
121
121
  //Display-only metadata parsed from the payload on decode (no encode — populated by the
122
122
  //message field above, never read back). command is the 1-byte code, commandName its
123
123
  //RFC 1179 label, operands the ASCII operand line up to the first line feed.
124
- command: { type: 'integer', label: 'Command', minimum: 0, maximum: 255 },
125
- commandName: { type: 'string', label: 'Command Name' },
126
- operands: { type: 'string', label: 'Operands' }
124
+ command: { type: 'integer', label: 'Command', readOnly: true, minimum: 0, maximum: 255 },
125
+ commandName: { type: 'string', label: 'Command Name', readOnly: true },
126
+ operands: { type: 'string', label: 'Operands', readOnly: true }
127
127
  }
128
128
  };
129
129
  }
@@ -119,13 +119,13 @@ class MGCP extends BaseHeader_1.BaseHeader {
119
119
  //Display-only metadata parsed from the first line on decode (no encode — populated by the
120
120
  //message field above, never read back). isResponse distinguishes a response line from a
121
121
  //command line; verb/endpoint/version are for commands, responseCode/comment for responses.
122
- isResponse: { type: 'boolean', label: 'Is Response' },
123
- verb: { type: 'string', label: 'Verb' },
124
- transactionId: { type: 'string', label: 'Transaction ID' },
125
- endpoint: { type: 'string', label: 'Endpoint' },
126
- version: { type: 'string', label: 'Version' },
127
- responseCode: { type: 'integer', label: 'Response Code', minimum: 0, maximum: 999 },
128
- comment: { type: 'string', label: 'Comment' }
122
+ isResponse: { type: 'boolean', label: 'Is Response', readOnly: true },
123
+ verb: { type: 'string', label: 'Verb', readOnly: true },
124
+ transactionId: { type: 'string', label: 'Transaction ID', readOnly: true },
125
+ endpoint: { type: 'string', label: 'Endpoint', readOnly: true },
126
+ version: { type: 'string', label: 'Version', readOnly: true },
127
+ responseCode: { type: 'integer', label: 'Response Code', readOnly: true, minimum: 0, maximum: 999 },
128
+ comment: { type: 'string', label: 'Comment', readOnly: true }
129
129
  }
130
130
  };
131
131
  }
@@ -1,4 +1,5 @@
1
1
  import { BaseHeader } from '../abstracts/BaseHeader';
2
+ import { HeuristicParent } from '../types/LayerGraph';
2
3
  import { ProtocolJSONSchema } from '../schema/ProtocolJSONSchema';
3
4
  import { DemuxProducer } from '../types/DemuxProducer';
4
5
  /**
@@ -23,6 +24,7 @@ export declare class MMS extends BaseHeader {
23
24
  readonly name: string;
24
25
  readonly nickname: string;
25
26
  readonly matchKeys: string[];
27
+ readonly heuristicParents: HeuristicParent[];
26
28
  readonly heuristicFallback: boolean;
27
29
  match(): boolean;
28
30
  readonly demuxProducers: DemuxProducer[];
@@ -28,6 +28,8 @@ class MMS extends BaseHeader_1.BaseHeader {
28
28
  //A content-heuristic child of ISO Session (unkeyed), selected by the Presentation fully-encoded-data
29
29
  //BER tag 0x61 (the MMS data-transfer phase).
30
30
  this.matchKeys = [];
31
+ //Editor graph: matched by content, so list it under these parents in allowedNextLayers().
32
+ this.heuristicParents = ['iso-session'];
31
33
  this.heuristicFallback = true;
32
34
  //A leaf for this slice — the MMS service body is kept verbatim inside `message`.
33
35
  this.demuxProducers = [];
@@ -199,7 +201,9 @@ class MMS extends BaseHeader_1.BaseHeader {
199
201
  //The whole Presentation + MMS BER blob is the authoritative source: decoded verbatim to hex
200
202
  //and re-emitted untouched, so any (even malformed) frame round-trips byte-for-byte.
201
203
  message: {
202
- type: 'string', label: 'Message', contentEncoding: 'hex',
204
+ //Default: an empty presentation fully-encoded-data PDU ([APPLICATION 1], 0x61), the
205
+ //form match() recognizes, so a fresh layer re-decodes as MMS.
206
+ type: 'string', label: 'Message', contentEncoding: 'hex', default: '6100',
203
207
  decode: function () {
204
208
  const available = this.packet.length - this.startPos;
205
209
  const buf = this.readBytes(0, available);
@@ -221,11 +225,11 @@ class MMS extends BaseHeader_1.BaseHeader {
221
225
  //Display-only metadata parsed from the BER blob on decode (no encode — populated by the
222
226
  //message field above), so they never affect the re-emitted bytes. invokeID / service are
223
227
  //present only for a confirmed request/response/error PDU.
224
- presentationContext: { type: 'integer', label: 'Presentation Context' },
225
- mmsPduType: { type: 'integer', label: 'MMS PDU Type' },
226
- mmsInvokeID: { type: 'integer', label: 'Invoke ID' },
227
- mmsService: { type: 'string', label: 'MMS Service' },
228
- mmsObjectNames: { type: 'array', label: 'Object Names', items: { type: 'string' } }
228
+ presentationContext: { type: 'integer', label: 'Presentation Context', readOnly: true },
229
+ mmsPduType: { type: 'integer', label: 'MMS PDU Type', readOnly: true },
230
+ mmsInvokeID: { type: 'integer', label: 'Invoke ID', readOnly: true },
231
+ mmsService: { type: 'string', label: 'MMS Service', readOnly: true },
232
+ mmsObjectNames: { type: 'array', label: 'Object Names', readOnly: true, items: { type: 'string' } }
229
233
  }
230
234
  };
231
235
  }
@@ -110,6 +110,7 @@ class MQTT extends BaseHeader_1.BaseHeader {
110
110
  //The decoded value of the Remaining Length varint (length of Variable Header + Payload).
111
111
  remainingLength: {
112
112
  type: 'integer',
113
+ autoCalculated: true,
113
114
  label: 'Remaining Length',
114
115
  minimum: 0,
115
116
  maximum: 268435455,
@@ -73,6 +73,7 @@ class MQTTSN extends BaseHeader_1.BaseHeader {
73
73
  //supplied (a crafted datagram may lie); else derived from the body byte length.
74
74
  length: {
75
75
  type: 'integer',
76
+ autoCalculated: true,
76
77
  label: 'Length',
77
78
  minimum: 0,
78
79
  maximum: 65535,
@@ -55,7 +55,7 @@ class MarkerProtocol extends BaseHeader_1.BaseHeader {
55
55
  label: 'TLV',
56
56
  properties: {
57
57
  type: { type: 'integer', label: 'Type', minimum: 0, maximum: 255 },
58
- length: { type: 'integer', label: 'Length', minimum: 0, maximum: 255 },
58
+ length: { type: 'integer', label: 'Length', autoCalculated: true, minimum: 0, maximum: 255 },
59
59
  value: { type: 'string', label: 'Value', contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.HEX }
60
60
  }
61
61
  },
@@ -118,9 +118,9 @@ class Megaco extends BaseHeader_1.BaseHeader {
118
118
  //Display-only metadata parsed from the header line on decode (no encode — populated by the
119
119
  //message field above, never read back). startToken is "MEGACO" (or "!" short form),
120
120
  //version is the protocol version, messageId is the message identifier (mId).
121
- startToken: { type: 'string', label: 'Start Token' },
122
- version: { type: 'string', label: 'Version' },
123
- messageId: { type: 'string', label: 'Message Identifier' }
121
+ startToken: { type: 'string', label: 'Start Token', readOnly: true },
122
+ version: { type: 'string', label: 'Version', readOnly: true },
123
+ messageId: { type: 'string', label: 'Message Identifier', readOnly: true }
124
124
  }
125
125
  };
126
126
  }
@@ -145,6 +145,7 @@ class Memcached extends BaseHeader_1.BaseHeader {
145
145
  //Ajv leaves it undefined and the derive path can trigger (mirrors ENIP.length).
146
146
  totalBodyLength: {
147
147
  type: 'integer',
148
+ autoCalculated: true,
148
149
  label: 'Total Body Length',
149
150
  minimum: 0,
150
151
  maximum: 4294967295,
@@ -228,9 +229,9 @@ class Memcached extends BaseHeader_1.BaseHeader {
228
229
  },
229
230
  //Display-only text metadata: the leading token of the text payload (populated by the
230
231
  //`message` decode below; no encode of its own). Empty for a binary message.
231
- command: { type: 'string', label: 'Command', default: '' },
232
+ command: { type: 'string', label: 'Command', readOnly: true, default: '' },
232
233
  //Drives the one-line summary: the text command, or `binary op=<opcode>` for a binary msg.
233
- summaryInfo: { type: 'string', label: 'Summary', hidden: true, default: '' },
234
+ summaryInfo: { type: 'string', label: 'Summary', readOnly: true, hidden: true, default: '' },
234
235
  //TEXT payload: the whole message kept verbatim (byte-perfect) and re-emitted untouched. The
235
236
  //leading token is parsed into `command` on decode; encode never reconstructs from it.
236
237
  message: {
@@ -42,6 +42,7 @@ class ModbusTCP extends BaseHeader_1.BaseHeader {
42
42
  protocolId: this.fieldUInt('protocolId', 2, 2, 'Protocol Identifier'),
43
43
  length: {
44
44
  type: 'integer',
45
+ autoCalculated: true,
45
46
  label: 'Length',
46
47
  minimum: 0,
47
48
  maximum: 65535,
@@ -43,6 +43,7 @@ class ModbusUDP extends BaseHeader_1.BaseHeader {
43
43
  protocolId: this.fieldUInt('protocolId', 2, 2, 'Protocol Identifier'),
44
44
  length: {
45
45
  type: 'integer',
46
+ autoCalculated: true,
46
47
  label: 'Length',
47
48
  minimum: 0,
48
49
  maximum: 65535,
@@ -77,6 +77,7 @@ class MongoDB extends BaseHeader_1.BaseHeader {
77
77
  //supplied (a crafted message may lie); else derived from the header + body byte length.
78
78
  messageLength: {
79
79
  type: 'integer',
80
+ autoCalculated: true,
80
81
  label: 'Message Length',
81
82
  minimum: 0,
82
83
  maximum: 4294967295,
@@ -50,6 +50,7 @@ class MySQL extends BaseHeader_1.BaseHeader {
50
50
  //The 3-byte payload length is LITTLE-ENDIAN (MySQL wire byte order); read/written by hand.
51
51
  payloadLength: {
52
52
  type: 'integer',
53
+ autoCalculated: true,
53
54
  label: 'Payload Length',
54
55
  minimum: 0,
55
56
  maximum: 0xffffff,
@@ -104,8 +104,8 @@ class NATS extends BaseHeader_1.BaseHeader {
104
104
  //Display-only metadata parsed from the control line on decode (no encode — populated by the
105
105
  //message field above, never read back). operation is the leading verb (upper-cased);
106
106
  //controlArguments is the remainder of the control line (empty for PING/PONG/+OK).
107
- operation: { type: 'string', label: 'Operation' },
108
- controlArguments: { type: 'string', label: 'Arguments' }
107
+ operation: { type: 'string', label: 'Operation', readOnly: true },
108
+ controlArguments: { type: 'string', label: 'Arguments', readOnly: true }
109
109
  }
110
110
  };
111
111
  }