@cto.af/pcap-ng-parser 3.0.1 → 3.0.3
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.
- package/README.md +14 -11
- package/lib/blocks.d.ts +148 -0
- package/lib/blocks.js +77 -0
- package/lib/events.d.ts +108 -0
- package/lib/events.js +61 -0
- package/lib/index.d.ts +117 -0
- package/lib/index.js +705 -0
- package/lib/linkTypes.d.ts +6 -0
- package/lib/linkTypes.js +223 -0
- package/lib/options.d.ts +13 -0
- package/lib/options.js +90 -0
- package/lib/utils.d.ts +14 -0
- package/lib/utils.js +20 -0
- package/package.json +7 -7
- package/lib/blocks.mjs +0 -1
- package/lib/events.d.mts +0 -97
- package/lib/events.mjs +0 -1
- package/lib/index.d.mts +0 -119
- package/lib/index.mjs +0 -1
- package/lib/linkTypes.mjs +0 -1
- package/lib/options.d.mts +0 -5
- package/lib/options.mjs +0 -1
- package/lib/utils.mjs +0 -1
package/lib/options.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const SECTION_HEADER=168627466,INTERFACE_DESCRIPTION=1,SIMPLE_PACKET=3,NAME_RESOLUTION=4,INTERFACE_STATISTICS=5,ENHANCED_PACKET=6,DECRYPTION_SECRETS=10,CUSTOM_COPY=2989,CUSTOM_NOCOPY=1073744813,OPTION_NAMES=new Map([[SECTION_HEADER,new Map([[1,[`opt_comment`,`string`]],[2,[`shb_hardware`,`string`]],[3,[`shb_os`,`string`]],[4,[`shb_userappl`,`string`]],[2988,[`opt_custom`,`string`,!0]],[2989,[`opt_custom`,void 0,!0]],[19372,[`opt_custom`,`string`,!0]],[19373,[`opt_custom`,void 0,!0]]])],[1,new Map([[1,[`opt_comment`,`string`]],[2,[`if_name`,`string`]],[3,[`if_description`,`string`]],[4,[`if_IPv4addr`,`ipv4mask`]],[5,[`if_IPv6addr`,`ipv6prefix`]],[6,[`if_MACaddr`,`eui`]],[7,[`if_EUIaddr`,`eui`]],[8,[`if_speed`]],[9,[`if_tsresol`]],[10,[`if_tzone`]],[11,[`if_filter`]],[12,[`if_os`,`string`]],[13,[`if_fcslen`]],[14,[`if_tsoffset`,`u64`]],[15,[`if_hardware`,`string`]],[16,[`if_txspeed`,`u64`]],[17,[`if_rxspeed`,`u64`]],[18,[`if_iana_tzname`,`string`]],[2988,[`opt_custom`,`string`,!0]],[2989,[`opt_custom`,void 0,!0]],[19372,[`opt_custom`,`string`,!0]],[19373,[`opt_custom`,void 0,!0]]])],[4,new Map([[1,[`opt_comment`,`string`]],[2,[`ns_dnsname`,`string`]],[3,[`ns_dnsIP4addr`,`ipv4`]],[4,[`ns_dnsIP6addr`,`ipv6`]],[2988,[`opt_custom`,`string`,!0]],[2989,[`opt_custom`,void 0,!0]],[19372,[`opt_custom`,`string`,!0]],[19373,[`opt_custom`,void 0,!0]]])],[5,new Map([[1,[`opt_comment`,`string`]],[2,[`isb_starttime`,`timestamp`]],[3,[`isb_endtime`,`timestamp`]],[4,[`isb_ifrecv`,`u64`]],[5,[`isb_ifdrop`,`u64`]],[6,[`isb_filteraccept`,`u64`]],[7,[`isb_osdrop`,`u64`]],[8,[`isb_usrdeliv`,`u64`]],[2988,[`opt_custom`,`string`,!0]],[2989,[`opt_custom`,void 0,!0]],[19372,[`opt_custom`,`string`,!0]],[19373,[`opt_custom`,void 0,!0]]])],[6,new Map([[1,[`opt_comment`,`string`]],[2,[`epb_flags`]],[3,[`epb_hash`]],[4,[`epb_dropcount`,`u64`]],[5,[`epb_packetid`,`u64`]],[6,[`epb_queue`,`u32`]],[7,[`epb_verdict`]],[8,[`epb_processid_threadid`]],[2988,[`opt_custom`,`string`,!0]],[2989,[`opt_custom`,void 0,!0]],[19372,[`opt_custom`,`string`,!0]],[19373,[`opt_custom`,void 0,!0]]])],[10,new Map([[1,[`opt_comment`,`string`]],[2988,[`opt_custom`,`string`,!0]],[2989,[`opt_custom`,void 0,!0]],[19372,[`opt_custom`,`string`,!0]],[19373,[`opt_custom`,void 0,!0]]])]]);export{CUSTOM_COPY,CUSTOM_NOCOPY,DECRYPTION_SECRETS,ENHANCED_PACKET,INTERFACE_DESCRIPTION,INTERFACE_STATISTICS,NAME_RESOLUTION,OPTION_NAMES,SECTION_HEADER,SIMPLE_PACKET};
|
package/lib/utils.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function pad4(n){return Math.ceil(n/4)*4-n}function colons(buf){return Array.from(buf).map(x=>x.toString(16).padStart(2,`0`)).join(`:`)}export{colons,pad4};
|