@cto.af/pcap-ng-parser 2.0.1

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.
@@ -0,0 +1,24 @@
1
+ export const SECTION_HEADER: 168627466;
2
+ export const INTERFACE_DESCRIPTION: 1;
3
+ export const SIMPLE_PACKET: 3;
4
+ export const NAME_RESOLUTION: 4;
5
+ export const INTERFACE_STATISTICS: 5;
6
+ export const ENHANCED_PACKET: 6;
7
+ export const DECRYPTION_SECRETS: 10;
8
+ export const CUSTOM_COPY: 2989;
9
+ export const CUSTOM_NOCOPY: 1073744813;
10
+ /**
11
+ * @typedef {'ipv4' | 'ipv6' | 'ipv4mask' | 'ipv6prefix' | 'eui' |
12
+ * 'u32' | 'u64' | 'timestamp' | 'string' | undefined} OptionType
13
+ */
14
+ /**
15
+ * @typedef {[name: string, typ?: OptionType, pen?: boolean]} OptionDescription
16
+ */
17
+ /** @typedef {Map<number, OptionDescription>} BlockOpts*/
18
+ /**
19
+ * @type {Map<number, BlockOpts>}
20
+ */
21
+ export const OPTION_NAMES: Map<number, BlockOpts>;
22
+ export type OptionType = "ipv4" | "ipv6" | "ipv4mask" | "ipv6prefix" | "eui" | "u32" | "u64" | "timestamp" | "string" | undefined;
23
+ export type OptionDescription = [name: string, typ?: OptionType, pen?: boolean];
24
+ export type BlockOpts = Map<number, OptionDescription>;