Module parser

Module parser 

Source
Expand description

Parser for file interface

Modules§

hex_extractor
Hex dump extraction utilities
parser_basic
Basic parser for simple layers (PHY, RLC, MAC, PDCP, SDAP, etc.)
parser_gtpu
Parser for GTPU traces
parser_nas
Parser for NAS traces
parser_ngap
Parser for NGAP traces
parser_phy
PHY layer parser for PDSCH/PUSCH traces
parser_rrc
Parser for RRC traces

Structs§

ParsedHeader
Common metadata extracted from either a file header line or WebSocket JSON fields. This serves as the unified input to all layer parsers.
ParsingError
Parsing error

Traits§

FileParser
Trait for file parser (legacy — kept for backward compatibility)
LayerParser
Unified layer parser trait. Takes a ParsedHeader (built from either file or WebSocket) plus payload data lines and produces AdditionalInfos for that layer.

Functions§

build_trace
Build a Trace from a ParsedHeader, AdditionalInfos, and data lines. This is the single assembly point used by both file and WebSocket paths.
eof_error
Build a eof_error
extract_file_payload
Extract the payload portion of file-format lines by stripping the header from the first line. For a file line like “13:20:58.310 [RRC] DL 0001 01 4601 DCCH-NR: RRC release”, this returns the part after the header prefix that is layer-specific payload.
parse_timestamp
Parse timestamp from the first line of a trace Expected format: “HH:MM:SS.mmm [LAYER] …”
parsing_error_to_tramex_error
Convert a parsing error to a tramex error
time_to_milliseconds
Convert a time to milliseconds.