netkitty 0.0.19 → 0.0.21

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 (66) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.idea/inspectionProfiles/Project_Default.xml +2 -1
  3. package/.idea/netkitty.iml +0 -1
  4. package/cpp/nodepcap/deps/include/Packet32.h +429 -429
  5. package/cpp/nodepcap/deps/include/pcap/bluetooth.h +56 -56
  6. package/cpp/nodepcap/deps/include/pcap/bpf.h +292 -292
  7. package/cpp/nodepcap/deps/include/pcap/can_socketcan.h +56 -56
  8. package/cpp/nodepcap/deps/include/pcap/compiler-tests.h +163 -163
  9. package/cpp/nodepcap/deps/include/pcap/dlt.h +1514 -1514
  10. package/cpp/nodepcap/deps/include/pcap/funcattrs.h +325 -325
  11. package/cpp/nodepcap/deps/include/pcap/ipnet.h +43 -43
  12. package/cpp/nodepcap/deps/include/pcap/namedb.h +84 -84
  13. package/cpp/nodepcap/deps/include/pcap/nflog.h +94 -94
  14. package/cpp/nodepcap/deps/include/pcap/pcap-inttypes.h +101 -101
  15. package/cpp/nodepcap/deps/include/pcap/pcap.h +1219 -1219
  16. package/cpp/nodepcap/deps/include/pcap/sll.h +149 -149
  17. package/cpp/nodepcap/deps/include/pcap/socket.h +84 -84
  18. package/cpp/nodepcap/deps/include/pcap/usb.h +143 -143
  19. package/cpp/nodepcap/deps/include/pcap/vlan.h +46 -46
  20. package/cpp/nodepcap/deps/include/pcap-bpf.h +45 -45
  21. package/cpp/nodepcap/deps/include/pcap-namedb.h +40 -40
  22. package/cpp/nodepcap/deps/include/pcap.h +43 -43
  23. package/dist/CodecExports.d.ts +1 -0
  24. package/dist/CodecExports.d.ts.map +1 -1
  25. package/dist/lib/codec/Codec.js +1 -1
  26. package/dist/lib/codec/PacketHeaders.d.ts +5 -0
  27. package/dist/lib/codec/PacketHeaders.d.ts.map +1 -1
  28. package/dist/lib/codec/PacketHeaders.js +13 -1
  29. package/dist/lib/codec/abstracts/BaseHeader.d.ts +2 -2
  30. package/dist/lib/codec/abstracts/BaseHeader.d.ts.map +1 -1
  31. package/dist/lib/codec/abstracts/BaseHeader.js +4 -4
  32. package/dist/lib/codec/headers/EthernetII.js +1 -1
  33. package/dist/lib/codec/headers/Goose.js +5 -5
  34. package/dist/lib/codec/headers/IEC61850SampledValues.js +1 -1
  35. package/dist/lib/codec/headers/IPv4.js +2 -2
  36. package/dist/lib/codec/headers/TLS_Alert.d.ts +10 -0
  37. package/dist/lib/codec/headers/TLS_Alert.d.ts.map +1 -0
  38. package/dist/lib/codec/headers/TLS_Alert.js +624 -0
  39. package/dist/lib/codec/headers/TLS_ApplicationData.d.ts +10 -0
  40. package/dist/lib/codec/headers/TLS_ApplicationData.d.ts.map +1 -0
  41. package/dist/lib/codec/headers/TLS_ApplicationData.js +155 -0
  42. package/dist/lib/codec/headers/TLS_ChangeCipherSpec.d.ts +10 -0
  43. package/dist/lib/codec/headers/TLS_ChangeCipherSpec.d.ts.map +1 -0
  44. package/dist/lib/codec/headers/TLS_ChangeCipherSpec.js +154 -0
  45. package/dist/lib/codec/headers/TLS_Handshake.d.ts +10 -0
  46. package/dist/lib/codec/headers/TLS_Handshake.d.ts.map +1 -0
  47. package/dist/lib/codec/headers/TLS_Handshake.js +339 -0
  48. package/dist/lib/codec/headers/TLS_Heartbeat.d.ts +10 -0
  49. package/dist/lib/codec/headers/TLS_Heartbeat.d.ts.map +1 -0
  50. package/dist/lib/codec/headers/TLS_Heartbeat.js +206 -0
  51. package/dist/lib/codec/headers/VLAN_802dot1Q.js +1 -1
  52. package/package.json +1 -1
  53. package/src/CodecExports.ts +1 -1
  54. package/src/lib/codec/Codec.ts +1 -1
  55. package/src/lib/codec/PacketHeaders.ts +7 -0
  56. package/src/lib/codec/abstracts/BaseHeader.ts +4 -4
  57. package/src/lib/codec/headers/EthernetII.ts +1 -1
  58. package/src/lib/codec/headers/Goose.ts +5 -5
  59. package/src/lib/codec/headers/IEC61850SampledValues.ts +1 -1
  60. package/src/lib/codec/headers/IPv4.ts +2 -2
  61. package/src/lib/codec/headers/TLS_Alert.ts +539 -0
  62. package/src/lib/codec/headers/TLS_ApplicationData.ts +145 -0
  63. package/src/lib/codec/headers/TLS_ChangeCipherSpec.ts +146 -0
  64. package/src/lib/codec/headers/TLS_Handshake.ts +313 -0
  65. package/src/lib/codec/headers/TLS_Heartbeat.ts +188 -0
  66. package/src/lib/codec/headers/VLAN_802dot1Q.ts +1 -1
@@ -1,56 +1,56 @@
1
- /*
2
- * Copyright (c) 2006 Paolo Abeni (Italy)
3
- * All rights reserved.
4
- *
5
- * Redistribution and use in source and binary forms, with or without
6
- * modification, are permitted provided that the following conditions
7
- * are met:
8
- *
9
- * 1. Redistributions of source code must retain the above copyright
10
- * notice, this list of conditions and the following disclaimer.
11
- * 2. Redistributions in binary form must reproduce the above copyright
12
- * notice, this list of conditions and the following disclaimer in the
13
- * documentation and/or other materials provided with the distribution.
14
- * 3. The name of the author may not be used to endorse or promote
15
- * products derived from this software without specific prior written
16
- * permission.
17
- *
18
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- *
30
- * bluetooth data struct
31
- * By Paolo Abeni <paolo.abeni@email.it>
32
- */
33
-
34
- #ifndef lib_pcap_bluetooth_h
35
- #define lib_pcap_bluetooth_h
36
-
37
- #include <pcap/pcap-inttypes.h>
38
-
39
- /*
40
- * Header prepended libpcap to each bluetooth h4 frame,
41
- * fields are in network byte order
42
- */
43
- typedef struct _pcap_bluetooth_h4_header {
44
- uint32_t direction; /* if first bit is set direction is incoming */
45
- } pcap_bluetooth_h4_header;
46
-
47
- /*
48
- * Header prepended libpcap to each bluetooth linux monitor frame,
49
- * fields are in network byte order
50
- */
51
- typedef struct _pcap_bluetooth_linux_monitor_header {
52
- uint16_t adapter_id;
53
- uint16_t opcode;
54
- } pcap_bluetooth_linux_monitor_header;
55
-
56
- #endif
1
+ /*
2
+ * Copyright (c) 2006 Paolo Abeni (Italy)
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ *
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote
15
+ * products derived from this software without specific prior written
16
+ * permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+ *
30
+ * bluetooth data struct
31
+ * By Paolo Abeni <paolo.abeni@email.it>
32
+ */
33
+
34
+ #ifndef lib_pcap_bluetooth_h
35
+ #define lib_pcap_bluetooth_h
36
+
37
+ #include <pcap/pcap-inttypes.h>
38
+
39
+ /*
40
+ * Header prepended libpcap to each bluetooth h4 frame,
41
+ * fields are in network byte order
42
+ */
43
+ typedef struct _pcap_bluetooth_h4_header {
44
+ uint32_t direction; /* if first bit is set direction is incoming */
45
+ } pcap_bluetooth_h4_header;
46
+
47
+ /*
48
+ * Header prepended libpcap to each bluetooth linux monitor frame,
49
+ * fields are in network byte order
50
+ */
51
+ typedef struct _pcap_bluetooth_linux_monitor_header {
52
+ uint16_t adapter_id;
53
+ uint16_t opcode;
54
+ } pcap_bluetooth_linux_monitor_header;
55
+
56
+ #endif