mirror of
https://github.com/morluto/rea.git
synced 2026-11-03 13:26:10 +00:00
Request epoch timestamps from capinfos and normalize them once at the metadata boundary, preserving nanosecond precision and explicit unknowns. Bound numeric parsing to the producer representation and cover negative fractions, calendar limits, malformed output and MCP projection. Adapted from PR #4909. Fixes #4907. Validation: 47 passed, 24 platform-specific skips across five focused files; check:fast and test discovery passed. No live Wireshark or Linux/Windows capture execution was performed on this macOS host. Co-authored-by: Mert Kaya <47145541+mertkayacs@users.noreply.github.com>
14 lines
686 B
Bash
Executable File
14 lines
686 B
Bash
Executable File
#!/bin/sh
|
|
# POSIX capinfos stub (mirrors capinfos-stub.cmd for Windows parity).
|
|
if [ "$1" = "--version" ]; then printf 'Capinfos (Wireshark) 4.6.6-posix-stub\n'; exit 0; fi
|
|
[ "$1" = "-M" ] && [ "$2" = "-S" ] && [ "$3" = "--" ] && [ "$#" = "4" ] || exit 2
|
|
printf '%s\n' 'File name: capture.pcap'
|
|
printf '%s\n' 'File type: Wireshark/tcpdump/... - pcap'
|
|
printf '%s\n' 'File encapsulation: Ethernet'
|
|
printf '%s\n' 'Packet size limit: file hdr: 262144 bytes'
|
|
printf '%s\n' 'Number of packets: 3'
|
|
printf '%s\n' 'Capture duration: 0.123 seconds'
|
|
printf '%s\n' 'Earliest packet time: 1791728020.608505'
|
|
printf '%s\n' 'Latest packet time: 1791728020.981978'
|
|
exit 0
|